From db03dc318e41f93887f668969dd207268a3168dc Mon Sep 17 00:00:00 2001 From: Valery Sizov Date: Tue, 21 Apr 2015 18:56:10 +0300 Subject: refactoring network related code --- spec/controllers/projects_controller_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'spec/controllers/projects_controller_spec.rb') diff --git a/spec/controllers/projects_controller_spec.rb b/spec/controllers/projects_controller_spec.rb index dea35f6..cea3986 100644 --- a/spec/controllers/projects_controller_spec.rb +++ b/spec/controllers/projects_controller_spec.rb @@ -82,7 +82,7 @@ describe ProjectsController do it "searches projects" do allow(controller).to receive(:reset_cache) { true } allow(controller).to receive(:current_user) { user } - Network.any_instance.should_receive(:projects).with(anything(), hash_including(search: 'str'), :authorized) + Network.any_instance.should_receive(:projects).with(hash_including(search: 'str'), :authorized) xhr :get, :gitlab, { search: "str", format: "js" }.with_indifferent_access -- cgit v1.2.1