Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'spec/lib/gitlab/patch/draw_route_spec.rb')
-rw-r--r--spec/lib/gitlab/patch/draw_route_spec.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/spec/lib/gitlab/patch/draw_route_spec.rb b/spec/lib/gitlab/patch/draw_route_spec.rb
index 4d1c7bf9fcf..d983f6f15bb 100644
--- a/spec/lib/gitlab/patch/draw_route_spec.rb
+++ b/spec/lib/gitlab/patch/draw_route_spec.rb
@@ -20,8 +20,10 @@ RSpec.describe Gitlab::Patch::DrawRoute do
it 'evaluates CE only route' do
subject.draw(:help)
+ route_file_path = subject.route_path('config/routes/help.rb')
+
expect(subject).to have_received(:instance_eval)
- .with(File.read(subject.route_path('config/routes/help.rb')))
+ .with(File.read(route_file_path), route_file_path)
.once
expect(subject).to have_received(:instance_eval)