erwinjunker / regressor

Generate specs for your rails application the easy way. Regressor generates model and controller specs based on validations, associations, enums, database, routes, callbacks. Use regressor to capture your rails application behaviour.
MIT License
206 stars 33 forks source link

"error mongoid [not found]" #15

Closed sha1sum closed 9 years ago

sha1sum commented 9 years ago

Even after updating the gem to the github-hosted version, upon trying to generate any migration, the generator fails with

ruby -e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift) /opt/code/salescenter/bin/spring rails generate migration SomeMigration -s
       error  mongoid [not found]

It's worth noting that we do not use anything backed with mongoid in our application.

erwinjunker commented 9 years ago

Could you try that again not using spring? Experienced some issues related to loading of spring.

sha1sum commented 9 years ago

No joy. Stopping spring did not fix the issue :(

erwinjunker commented 9 years ago

I removed the mongoid-rspec dependency from the gemspec can you try generating using the 0.5.7 version of regressor?

sha1sum commented 9 years ago

Perfect! Thank you!