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

Fixtures take extremely long to load #7

Closed
PandaWhisperer opened this issue Oct 20, 2016 · 1 comment
Closed

Fixtures take extremely long to load #7

PandaWhisperer opened this issue Oct 20, 2016 · 1 comment

Comments

@PandaWhisperer
Copy link

PandaWhisperer commented Oct 20, 2016

After managing to get Mongoid::FixtureSet set up with RSpec (see #6), when running my tests, RSpec gets stuck for an extremely long time (30+ seconds) on the loading fixtures step, even though I've only defined a single, very minimal fixture file, spec/fixtures/currencies.yml:

usd:
  label: US Dollar
  code: USD
  status: active
  created_by: 2
  updated_by: 2

euro:
  label: Euro
  code: EUR
  status: active
  created_by: 2
  updated_by: 2

After the long wait, it eventually fails with the following error:

TypeError:
    no implicit conversion of nil into String
# ~/.rvm/gems/ruby-2.2.4/gems/mongoid-fixture_set-1.5.0/lib/mongoid/fixture_set.rb:69:in `join'
# ~/.rvm/gems/ruby-2.2.4/gems/mongoid-fixture_set-1.5.0/lib/mongoid/fixture_set.rb:69:in `block in create_fixtures'
# ~/.rvm/gems/ruby-2.2.4/gems/mongoid-fixture_set-1.5.0/lib/mongoid/fixture_set.rb:64:in `map'
# ~/.rvm/gems/ruby-2.2.4/gems/mongoid-fixture_set-1.5.0/lib/mongoid/fixture_set.rb:64:in `create_fixtures'
# ~/.rvm/gems/ruby-2.2.4/gems/mongoid-fixture_set-1.5.0/lib/mongoid/fixture_set/test_helper.rb:91:in `load_fixtures'
# ~/.rvm/gems/ruby-2.2.4/gems/mongoid-fixture_set-1.5.0/lib/mongoid/fixture_set/test_helper.rb:75:in `setup_fixtures'
# ./spec/routes/categories_spec.rb:41:in `block (2 levels) in <top (required)>'

@PandaWhisperer
Copy link
Author

Okay, this appears to be connected to my setup in #6, so I'm going to close this issue and continue the thread there.

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

No branches or pull requests

1 participant