summaryrefslogtreecommitdiff
path: root/spec/models/route_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/models/route_spec.rb')
-rw-r--r--spec/models/route_spec.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/models/route_spec.rb b/spec/models/route_spec.rb
index 42c2104ceb8..fece370c03f 100644
--- a/spec/models/route_spec.rb
+++ b/spec/models/route_spec.rb
@@ -151,7 +151,7 @@ describe Route do
it 'deletes the redirect' do
expect do
route.delete_conflicting_redirects
- end.to change{RedirectRoute.count}.by(-1)
+ end.to change { RedirectRoute.count }.by(-1)
end
context 'when redirect routes with paths descending from the route path exists' do
@@ -163,7 +163,7 @@ describe Route do
it 'deletes all redirects with paths that descend from the route path' do
expect do
route.delete_conflicting_redirects
- end.to change{RedirectRoute.count}.by(-4)
+ end.to change { RedirectRoute.count }.by(-4)
end
end
end
@@ -174,7 +174,7 @@ describe Route do
it 'deletes the redirect' do
expect do
route.delete_conflicting_redirects
- end.to change{RedirectRoute.count}.by(-1)
+ end.to change { RedirectRoute.count }.by(-1)
end
end
end