spec/shared/controllers.rb in fat_free_crm-0.13.2 vs spec/shared/controllers.rb in fat_free_crm-0.13.3
- old
+ new
@@ -8,16 +8,16 @@
before(:each) do
@query = "Hello"
end
it "should do the search and find records that match autocomplete query" do
- post :auto_complete, :auto_complete_query => @query
+ get :auto_complete, :auto_complete_query => @query
assigns[:query].should == @query
assigns[:auto_complete].should == @auto_complete_matches # Each controller must define it.
end
it "should save current autocomplete controller in a session" do
- post :auto_complete, :auto_complete_query => @query
+ get :auto_complete, :auto_complete_query => @query
# We don't save Admin/Users autocomplete controller in a session since Users are not
# exposed through the Jumpbox.
unless controller.class.to_s.starts_with?("Admin::")
session[:auto_complete].should == @controller.controller_name.to_sym