Skip to content

Commit b41568b

Browse files
authored
Fix routing spec scaffold format
1 parent f150bf7 commit b41568b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/generators/rspec/scaffold/templates/routing_spec.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@
88
it "routes to #index" do
99
expect(:get => "/<%= ns_table_name %>").to route_to("<%= ns_table_name %>#index")
1010
end
11-
11+
1212
<% end -%>
1313
<% unless options[:api] -%>
1414
it "routes to #new" do
1515
expect(:get => "/<%= ns_table_name %>/new").to route_to("<%= ns_table_name %>#new")
1616
end
17+
1718
<% end -%>
18-
1919
it "routes to #show" do
2020
expect(:get => "/<%= ns_table_name %>/1").to route_to("<%= ns_table_name %>#show", :id => "1")
2121
end
@@ -24,6 +24,7 @@
2424
it "routes to #edit" do
2525
expect(:get => "/<%= ns_table_name %>/1/edit").to route_to("<%= ns_table_name %>#edit", :id => "1")
2626
end
27+
2728
<% end -%>
2829
2930
it "routes to #create" do
@@ -43,7 +44,6 @@
4344
it "routes to #destroy" do
4445
expect(:delete => "/<%= ns_table_name %>/1").to route_to("<%= ns_table_name %>#destroy", :id => "1")
4546
end
46-
4747
end
4848
end
4949
<% end -%>

0 commit comments

Comments
 (0)