[rspec-users] Shared Helpers
Scott Taylor
scott at railsnewbie.com
Tue Feb 23 12:30:02 EST 2010
Has there been any development on shared helpers / it_should_behave_like feature in rspec?
I forget the reasons, but I remember a patch for something like this was rejected:
it_should_behave_like "an_entry", :locals => { :entry => Entry.new }
OR:
before do
@entry = Entry.new
end
it_should_behave_like "an_entry", :locals => lambda {
{
:entry => @entry
}
}
Is there any code which now deals with the variable passing issue in rspec?
Best,
Scott
More information about the rspec-users
mailing list