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