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

Support for Rails Engines #53

Open
frank-west-iii opened this issue Feb 27, 2017 · 1 comment
Open

Support for Rails Engines #53

frank-west-iii opened this issue Feb 27, 2017 · 1 comment

Comments

@frank-west-iii
Copy link

We are currently looking to implement this gem in a Rails Engine, however the Railtie initializer does not load.

https://github.com/amatsuda/database_rewinder/blob/master/lib/database_rewinder/railtie.rb#L4

I am not familiar enough with Railtie to understand what would need to be changed to make this work or if it is possible at all.

Do you know if this is possible to run in an Engine?

@frank-west-iii
Copy link
Author

frank-west-iii commented Feb 28, 2017

I uploaded a sample engine with the reproduced error here:
https://github.com/frank-west-iii/database_rewinder_engine

The error is:

bundle exec rspec spec

An error occurred in a `before(:suite)` hook.
Failure/Error: DatabaseRewinder.clean_all

NoMethodError:
  undefined method `empty?' for nil:NilClass

Finished in 0.01801 seconds (files took 1.09 seconds to load)
0 examples, 0 failures

Not sure this will help, but thought I would post it up just in case!

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