diff options
author | Douwe Maan <douwe@selenight.nl> | 2017-02-07 03:06:46 +0300 |
---|---|---|
committer | Douwe Maan <douwe@selenight.nl> | 2017-02-07 03:06:46 +0300 |
commit | 9d7c5e75841eff48217487b3acda56cf265a2aef (patch) | |
tree | d90819e572eab930a8729ed767f6565620922e8a /spec/lib/gitlab/route_map_spec.rb | |
parent | b0279cc2239e0b24d59bc80085a9ba42fcf6226a (diff) |
Address feedback
Diffstat (limited to 'spec/lib/gitlab/route_map_spec.rb')
-rw-r--r-- | spec/lib/gitlab/route_map_spec.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/spec/lib/gitlab/route_map_spec.rb b/spec/lib/gitlab/route_map_spec.rb index d56380bec50..459fa8a63a9 100644 --- a/spec/lib/gitlab/route_map_spec.rb +++ b/spec/lib/gitlab/route_map_spec.rb @@ -54,7 +54,8 @@ describe Gitlab::RouteMap, lib: true do context 'when all is good' do it 'returns a route map' do route_map = described_class.new(YAML.dump([{ 'source' => '/index\.html/', 'public' => 'index.html' }])) - expect(route_map.map).to eq([{ source: /^index\.html$/, public: 'index.html' }]) + + expect(route_map.public_path_for_source_path('index.html')).to eq('index.html') end end end |