diff options
author | Rémy Coutable <remy@rymai.me> | 2016-12-21 13:45:18 +0100 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2016-12-21 13:46:52 +0100 |
commit | 90c6a1a3198ba8090c645d740ac619e01a2e834e (patch) | |
tree | 8cfa58a1733a1bc2c201b4897a630ad330c3c61e /spec/lib/gitlab/metrics | |
parent | ffcf1565089e36681cb0a75d5b51955b5b87ab78 (diff) | |
download | gitlab-ce-90c6a1a3198ba8090c645d740ac619e01a2e834e.tar.gz |
Use Grape's new Route methods25908-fix-grape-after-update
- Use Route#request_method instead of Route#route_method
- Use Route#path instead of Route#route_path
Signed-off-by: Rémy Coutable <remy@rymai.me>
Diffstat (limited to 'spec/lib/gitlab/metrics')
-rw-r--r-- | spec/lib/gitlab/metrics/rack_middleware_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/lib/gitlab/metrics/rack_middleware_spec.rb b/spec/lib/gitlab/metrics/rack_middleware_spec.rb index bcaffd27909..7371b578a48 100644 --- a/spec/lib/gitlab/metrics/rack_middleware_spec.rb +++ b/spec/lib/gitlab/metrics/rack_middleware_spec.rb @@ -33,7 +33,7 @@ describe Gitlab::Metrics::RackMiddleware do end it 'tags a transaction with the method and path of the route in the grape endpoint' do - route = double(:route, route_method: "GET", route_path: "/:version/projects/:id/archive(.:format)") + route = double(:route, request_method: "GET", path: "/:version/projects/:id/archive(.:format)") endpoint = double(:endpoint, route: route) env['api.endpoint'] = endpoint @@ -117,7 +117,7 @@ describe Gitlab::Metrics::RackMiddleware do let(:transaction) { middleware.transaction_from_env(env) } it 'tags a transaction with the method and path of the route in the grape endpount' do - route = double(:route, route_method: "GET", route_path: "/:version/projects/:id/archive(.:format)") + route = double(:route, request_method: "GET", path: "/:version/projects/:id/archive(.:format)") endpoint = double(:endpoint, route: route) env['api.endpoint'] = endpoint |