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

Disable in test environment #22

Open
danijel opened this issue Mar 24, 2017 · 2 comments
Open

Disable in test environment #22

danijel opened this issue Mar 24, 2017 · 2 comments

Comments

@danijel
Copy link

danijel commented Mar 24, 2017

Since update from 1.1.0 to 1.3.1 my specs fail because of "Updater can't be blank"
Is there any way to disable tracking in test env?

I tried something like
Mongoid::History.store[Mongoid::History::GLOBAL_TRACK_HISTORY_FLAG] = false
in my environments/test.rb, but no luck.

Also, even if I set updater in my factory girl factories, something weird is going on,
running single suite of tests passes, but running all of them throws validation errors because of updater missing.

this is both with ruby 2.3.3 and ruby 2.4.1 and with rails 5, rails_admin, mongoid 6.1, rspec and factory girl.

Thanks.

@bryannativapps
Copy link

Did you solved your issue? How? Am in the same spot.

@danijel
Copy link
Author

danijel commented Aug 16, 2017 via email

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

2 participants