summaryrefslogtreecommitdiff
path: root/com/spec/lib/gitlab/patch/draw_route_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'com/spec/lib/gitlab/patch/draw_route_spec.rb')
-rw-r--r--com/spec/lib/gitlab/patch/draw_route_spec.rb25
1 files changed, 0 insertions, 25 deletions
diff --git a/com/spec/lib/gitlab/patch/draw_route_spec.rb b/com/spec/lib/gitlab/patch/draw_route_spec.rb
deleted file mode 100644
index 823bebd5c0d..00000000000
--- a/com/spec/lib/gitlab/patch/draw_route_spec.rb
+++ /dev/null
@@ -1,25 +0,0 @@
-# frozen_string_literal: true
-
-require 'fast_spec_helper'
-require 'com_spec_helper'
-
-describe Gitlab::Patch::DrawRoute do
- subject do
- Class.new do
- include Gitlab::Patch::DrawRoute
-
- def route_path(route_name)
- File.expand_path("../../../../../#{route_name}", __dir__)
- end
- end.new
- end
-
- before do
- allow(subject).to receive(:instance_eval)
- end
-
- it 'raises an error when nothing is drawn' do
- expect { subject.draw(:non_existing) }
- .to raise_error(described_class::RoutesNotFound)
- end
-end