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

_______________________________________________
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users

Reply via email to