Hi,
This fails:
describe UsersController::QuickSearch do
controller_name "users"
describe "created with search text" do
before(:each) do
@quick_search =
UsersController::QuickSearch.new("quick_search[search_text]" =>
"search_text")
end
it "should turn search text into a search on the first name, surname,
username and secondary email" do
@quick_search.to_conditions.should == {
:conditions => "..."
}
end
end
end
with this error:
ArgumentError in 'UsersController::QuickSearch created with search text
should turn search text into a search on the first name, surname, username
and secondary email'
wrong number of arguments (0 for 1)
script/spec:4:
But if I comment out the nested describe
# describe "created with search text" do
before(:each) do
@quick_search = ...
#
it works fine.
Anyone got any ideas? I must be doing something stupid, I've got a nearly
identical one immediately below.
Thanks
Ashley
_______________________________________________
rspec-users mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/rspec-users