On 1.10.2007, at 18.25, Jesper Laursen wrote: > Okay, now it seems til work. > The problem has what I have to place: > @domain.virtual_hosts.should_receive(:find).with > ("1").and_return(@virtual_host) > in the before, because the "do_get" method was using it, in all it- > blocks. > > I just think that my before are pretty big. > And I have to copy it for every describtion.
You could wrap it in a helper method in a module that you can include and call in the specs instead of repeating all the lines. //jarkko -- Jarkko Laine http://jlaine.net http://dotherightthing.com http://www.railsecommerce.com http://odesign.fi _______________________________________________ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users