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/models/route_spec.rb')
-rw-r--r--spec/models/route_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/models/route_spec.rb b/spec/models/route_spec.rb
index 929eaca85f7..0bdaa4994e5 100644
--- a/spec/models/route_spec.rb
+++ b/spec/models/route_spec.rb
@@ -281,14 +281,14 @@ RSpec.describe Route do
it 'does not delete the original route' do
# before deleting the route, check its there
- expect(Route.where(path: offending_route.path).count).to eq(1)
+ expect(described_class.where(path: offending_route.path).count).to eq(1)
expect do
Group.delete(conflicting_group) # delete group with conflicting route
end.to change { described_class.count }.by(-1)
# check the conflicting route is gone
- expect(Route.where(path: offending_route.path).count).to eq(0)
+ expect(described_class.where(path: offending_route.path).count).to eq(0)
expect(route.path).to eq(offending_route.path)
expect(route.valid?).to be_truthy
end