Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

I could have fixed the bug on rspec I reported. #13

Open
wants to merge 1 commit into from

3 participants

@norisuke3

Hi David,

I could have fixed the bug on rspec I reported here: http://rubyforge.org/pipermail/rspec-users/2011-January/019187.html
I'm not sure if it's proper way to fix it or not, but it works for those explained in my report except the ControllerSpec one.
The ControllerSpec one might have a different reason because it's still indicating the same error on the test.

Anyway, please take a look at this patch, and if you agree with my update, please pull it.

Thank you,
Nori

@dchelimsky
Owner

Clicking on the link to the report gets me a 404. What was the issue?

@julio

The link Nori posted has some extra characters. This is the correct one: http://rubyforge.org/pipermail/rspec-users/2011-January/019187.html

@norisuke3
@dchelimsky dchelimsky was assigned
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jan 14, 2011
  1. @norisuke3
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/spec/example/subject.rb
View
2  lib/spec/example/subject.rb
@@ -21,7 +21,7 @@ def subject(&block)
end
def its(attribute, &block)
- describe(attribute) do
+ describe(instance_eval(&subject)) do
example do
self.class.class_eval do
define_method(:subject) do
Something went wrong with that request. Please try again.