-
-
Notifications
You must be signed in to change notification settings - Fork 397
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
Broken expectation raises undefined method `surface_descriptions_in' #473
Comments
Thanks for reporting this. I think I may know what's going on. Do you have |
Yup YARD is loaded, anything I can do to fix that for now? |
Do you actually need If you're not using it in your test environment, simply stop it from being loaded to work around this bug (e.g. by adding I hope to have an rspec-expecations fix for this ready to go later today. |
I don't need it at all really but it comes with https://github.com/nixme/jazz_hands and is loaded automatically. I use pry for debugging my tests I will require only the needed gems in test mode for now. |
You can try undefining the |
I have a fix ready to go in #474, if you want to git that a shot. |
@mhenrixon let us know if this is still an issue for you |
@JonRowe I can confirm that I had this issue with beta2 and pulling down master fixed the issue for me. |
Yup, but loading the master of
|
@jtomaszewski -- I'm not aware of any regressions in rspec-expectations. Can you file an issue for whatever issue you saw in your rails app? We can't fix your issue if we're not made aware of it! |
Has anyone made any progress on this? |
@davidimoore -- we've fixed it in master. The fix will be in the next release. You can get the fix before then by pointing your gemfile at github. |
@davidimoore this was fixed in 4f62813 |
Ok thanks. |
thanks for fixing this! |
- The require will not trigger until redis_mock accessed. - If we happen to call `SidekiqUniqueJobs.redis_mock.flushdb` in a `before(:each)` but `testing_enabled?` hasn't yet been called, tests will all blow up. This avoids the need for an extra `require` in the test/spec helper. - Switches to ruby's built-in `defined?` operator.
Take the following spec, when all is well no problem but every time I have an error on comparing hashes I get the below error.
I feel like this might be related to rspec/rspec-support#41
The text was updated successfully, but these errors were encountered: