Well, after some investigating, I discovered than another one of my spec
files
was causing this behavior. When removing this other spec file, the one
that
was failing via rake spec no longer failed… Totally bizarre.
This is the spec that fails:
And this is the spec that when I delete, the other one that failed now
passes:
This is so weird, I would really love it if someone could shed some
light on
this.
On May 1, 2010, at 2:29 AM, Patrick J. Collins wrote:
This is so weird, I would really love it if someone could shed some light on
this.
Hey Patrick,
This is just a guess, but on line 3 of content_renderer_spec.rb · GitHub,
ActionView::Helpers is being mixed in to the main object, which means
it’s methods are made accessible to every single object in the system.
It’s very likely that it is overriding methods that are deeper down the
stack. Try moving that include statement inside the ExampleGroup (i.e.
inside the describe block).
If that doesn’t work, please run the specs with the -b flag, which
produces a full backtrace, and then gist the output for us.
ActionView::Helpers is being mixed in to the main object, which means it’s
methods are made accessible to every single object in the system. It’s very
likely that it is overriding methods
Hi David,
Ahh… Thank you very much, that was indeed the problem. rake spec now
passes
all test.