Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

uninitialized constant SlackRubyBotServer::Stripe::Models::Mongoid::Boolean #10

Closed
duffn opened this issue Jun 11, 2022 · 0 comments · Fixed by #11
Closed

uninitialized constant SlackRubyBotServer::Stripe::Models::Mongoid::Boolean #10

duffn opened this issue Jun 11, 2022 · 0 comments · Fixed by #11

Comments

@duffn
Copy link
Contributor

duffn commented Jun 11, 2022

Running tests locally results in the following error, which seems to be the same as slack-ruby/slack-ruby-bot-server#140.

I will attempt to fix.

$ ruby -v
ruby 2.6.2p47 (2019-03-13 revision 67232) [x86_64-darwin20]
$ DATABASE_ADAPTER=mongoid bundle install
$ DATABASE_ADAPTER=mongoid bundle exec rake spec
An error occurred while loading ./spec/integration/subscribe_spec.rb.
Failure/Error: field :subscribed, type: Boolean, default: false

NameError:
  uninitialized constant SlackRubyBotServer::Stripe::Models::Mongoid::Boolean
# ./lib/slack-ruby-bot-server-stripe/models/mongoid.rb:14:in `block in <module:Mongoid>'
# ./lib/slack-ruby-bot-server-stripe/models/mongoid.rb:29:in `include'
# ./lib/slack-ruby-bot-server-stripe/models/mongoid.rb:29:in `<top (required)>'
# ./lib/slack-ruby-bot-server-stripe/models.rb:4:in `require_relative'
# ./lib/slack-ruby-bot-server-stripe/models.rb:4:in `<top (required)>'
# ./lib/slack-ruby-bot-server-stripe.rb:10:in `require_relative'
# ./lib/slack-ruby-bot-server-stripe.rb:10:in `<top (required)>'
# ./spec/spec_helper.rb:6:in `<top (required)>'
# ./spec/integration/subscribe_spec.rb:3:in `require'
# ./spec/integration/subscribe_spec.rb:3:in `<top (required)>'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant