We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b41568b commit e4a20bfCopy full SHA for e4a20bf
lib/generators/rspec/scaffold/templates/routing_spec.rb
@@ -3,18 +3,17 @@
3
<% module_namespacing do -%>
4
RSpec.describe <%= controller_class_name %>Controller, <%= type_metatag(:routing) %> do
5
describe "routing" do
6
-
7
<% unless options[:singleton] -%>
8
it "routes to #index" do
9
expect(:get => "/<%= ns_table_name %>").to route_to("<%= ns_table_name %>#index")
10
end
11
+
12
<% end -%>
13
<% unless options[:api] -%>
14
it "routes to #new" do
15
expect(:get => "/<%= ns_table_name %>/new").to route_to("<%= ns_table_name %>#new")
16
17
18
19
it "routes to #show" do
20
expect(:get => "/<%= ns_table_name %>/1").to route_to("<%= ns_table_name %>#show", :id => "1")
0 commit comments