File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
lib/generators/rspec/scaffold/templates Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 8
8
it "routes to #index" do
9
9
expect(:get => "/<%= ns_table_name %>").to route_to("<%= ns_table_name %>#index")
10
10
end
11
-
11
+
12
12
<% end -%>
13
13
<% unless options[:api] -%>
14
14
it "routes to #new" do
15
15
expect(:get => "/<%= ns_table_name %>/new").to route_to("<%= ns_table_name %>#new")
16
16
end
17
+
17
18
<% end -%>
18
-
19
19
it "routes to #show" do
20
20
expect(:get => "/<%= ns_table_name %>/1").to route_to("<%= ns_table_name %>#show", :id => "1")
21
21
end
24
24
it "routes to #edit" do
25
25
expect(:get => "/<%= ns_table_name %>/1/edit").to route_to("<%= ns_table_name %>#edit", :id => "1")
26
26
end
27
+
27
28
<% end -%>
28
29
29
30
it "routes to #create" do
43
44
it "routes to #destroy" do
44
45
expect(:delete => "/<%= ns_table_name %>/1").to route_to("<%= ns_table_name %>#destroy", :id => "1")
45
46
end
46
-
47
47
end
48
48
end
49
49
<% end -%>
You can’t perform that action at this time.
0 commit comments