spec/shared/controllers.rb in fat_free_crm-0.17.1 vs spec/shared/controllers.rb in fat_free_crm-0.17.2

- old
+ new

@@ -10,26 +10,26 @@ before(:each) do @query = "Hello" end it "should do the search and find records that match autocomplete query" do - get :auto_complete, params: { auto_complete_query: @query } + get :auto_complete, params: { term: @query } expect(assigns[:query]).to eq(@query) expect(assigns[:auto_complete]).to eq(@auto_complete_matches) # Each controller must define it. end it "should save current autocomplete controller in a session" do - get :auto_complete, params: { auto_complete_query: @query } + get :auto_complete, params: { term: @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::") expect(session[:auto_complete]).to eq(@controller.controller_name.to_sym) end end it "should render application/_auto_complete template" do - post :auto_complete, params: { auto_complete_query: @query } + post :auto_complete, params: { term: @query } expect(response).to render_template("application/_auto_complete") end end shared_examples "attach" do