Skip to content

Commit e4a20bf

Browse files
committed
Remove starting new line after describe block
1 parent b41568b commit e4a20bf

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,17 @@
33
<% module_namespacing do -%>
44
RSpec.describe <%= controller_class_name %>Controller, <%= type_metatag(:routing) %> do
55
describe "routing" do
6-
76
<% unless options[:singleton] -%>
87
it "routes to #index" do
98
expect(:get => "/<%= ns_table_name %>").to route_to("<%= ns_table_name %>#index")
109
end
11-
10+
1211
<% end -%>
1312
<% unless options[:api] -%>
1413
it "routes to #new" do
1514
expect(:get => "/<%= ns_table_name %>/new").to route_to("<%= ns_table_name %>#new")
1615
end
17-
16+
1817
<% end -%>
1918
it "routes to #show" do
2019
expect(:get => "/<%= ns_table_name %>/1").to route_to("<%= ns_table_name %>#show", :id => "1")

0 commit comments

Comments
 (0)