diff options
author | Rémy Coutable <remy@rymai.me> | 2016-12-23 17:03:25 +0100 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2016-12-23 19:07:23 +0100 |
commit | 1b109c99a4802e2cc6598d19248013c0dc152d7a (patch) | |
tree | d9c9e601a029abd6cde08119032396923e17cfa5 /spec/requests/api | |
parent | 5866f7b30e2a5c0350cdef0872ba161c387ae7de (diff) | |
download | gitlab-ce-1b109c99a4802e2cc6598d19248013c0dc152d7a.tar.gz |
Fix a Grape deprecation, use `#request_method` instead of `#route_method`fix-api-deprecation
Signed-off-by: Rémy Coutable <remy@rymai.me>
Diffstat (limited to 'spec/requests/api')
-rw-r--r-- | spec/requests/api/helpers_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/requests/api/helpers_spec.rb b/spec/requests/api/helpers_spec.rb index c3d7ac3eef8..b8ee2293a33 100644 --- a/spec/requests/api/helpers_spec.rb +++ b/spec/requests/api/helpers_spec.rb @@ -396,7 +396,7 @@ describe API::Helpers, api: true do %w[HEAD GET].each do |method_name| context "method is #{method_name}" do before do - expect_any_instance_of(self.class).to receive(:route).and_return(double(route_method: method_name)) + expect_any_instance_of(self.class).to receive(:route).and_return(double(request_method: method_name)) end it 'does not raise an error' do @@ -410,7 +410,7 @@ describe API::Helpers, api: true do %w[POST PUT PATCH DELETE].each do |method_name| context "method is #{method_name}" do before do - expect_any_instance_of(self.class).to receive(:route).and_return(double(route_method: method_name)) + expect_any_instance_of(self.class).to receive(:route).and_return(double(request_method: method_name)) end it 'calls authenticate!' do |