This repository has been archived by the owner on Nov 30, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 394
raise_error behavior change under Ruby 2 #232
Milestone
Comments
It's not expected or previously known. Can you come up with an isolated example that demonstrates this? |
@myronmarston ta-da! https://github.com/jjb/rspec-expectations-issue-232 see spec/models/foo_spec.rb |
and here's the output of running specs under each version
|
I'm going to try and isolate/fix this today |
ghost
assigned fables-tales
Apr 10, 2013
I've isolated this to line 23 of this file |
@samphippen nice. i wonder why ruby 2 caused that behavior to change thought... |
@jjb: it got changed here: |
interesting -- although i can't really tell from that thread what the i haven't seen this issue discussed anywhere else on the web /cc @avdi |
Well that ticks me off. I can't think of any good reason to require that thing to be a class or module. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I'm seeing a behavior change when running under Ruby 2.0.
I have specs that looks like this. To make them pass under Ruby 2, I had to make the change noted in the comment near the end.
Is this expected? Is this because of a fundamental change in Ruby 2, or a bug in how rspec interacts with it?
Let me know if you want more info.
rails is 3.2.13
The text was updated successfully, but these errors were encountered: