[rspec-users] it_behaves_like and running single examples
wagner.andrew at gmail.com
Thu Feb 17 08:10:59 EST 2011
To diagnose this, I would start to try to isolate the problem as much as
possible. Get it all the way down to one file, outside of rails, with one
test that exemplifies the behavior, if need be. And if you get to that point
and still see the strangeness...send us a pastebin of it :)
On Wed, Feb 16, 2011 at 9:34 AM, Andrew Vargo <ajvargo at gmail.com> wrote:
> I am running rspec 2 and rails 3 in a project.
> When I have a shared example being used in a spec file, I loose the
> ability to run a single test in that file.
> rspec spec/controllers/proposals_controller_spec.rb:13 for instance
> will always give me a green '..', even if I put uparsable junk in that
> example like
> it "should choke" do
> Running the file w/o the line number works ace.
> When I remove the shared example line: it_behaves_like "...", all goes
> back to normal.
> Any thoughts? Even if where to start diagnosing it? My shared
> example is in a rb file in spec/support.
> rspec-users mailing list
> rspec-users at rubyforge.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the rspec-users