Commit 3d0de978 authored by Sean McGivern's avatar Sean McGivern

Merge branch 'fix-etag-caching-router-spec' into 'master'

Fix spec for Gitlab::EtagCaching::Router

See merge request !2065
parents b34bc6fe e8cca0a3
...@@ -68,11 +68,11 @@ describe Gitlab::EtagCaching::Router do ...@@ -68,11 +68,11 @@ describe Gitlab::EtagCaching::Router do
end end
it 'matches build endpoint' do it 'matches build endpoint' do
env = build_env( request = build_request(
'/my-group/my-project/builds/234.json' '/my-group/my-project/builds/234.json'
) )
result = described_class.match(env) result = described_class.match(request)
expect(result).to be_present expect(result).to be_present
expect(result.name).to eq 'project_build' expect(result.name).to eq 'project_build'
...@@ -89,11 +89,11 @@ describe Gitlab::EtagCaching::Router do ...@@ -89,11 +89,11 @@ describe Gitlab::EtagCaching::Router do
end end
it 'matches the environments path' do it 'matches the environments path' do
env = build_env( request = build_request(
'/my-group/my-project/environments.json' '/my-group/my-project/environments.json'
) )
result = described_class.match(env) result = described_class.match(request)
expect(result).to be_present expect(result).to be_present
expect(result.name).to eq 'environments' expect(result.name).to eq 'environments'
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment