File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed
lib/generators/rspec/scaffold/templates Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -438,7 +438,7 @@ for more info on Capybara integration.
438
438
See [ http://github.com/rspec/rspec-dev ] ( http://github.com/rspec/rspec-dev ) .
439
439
440
440
For ` rspec-rails ` -specific development information, see
441
- [ DEV-README ] ( https://github.com/rspec/rspec-rails/blob/master/DEV-README .md ) .
441
+ [ README_DEV ] ( https://github.com/rspec/rspec-rails/blob/master/README_DEV .md ) .
442
442
443
443
# Also see
444
444
Original file line number Diff line number Diff line change 6
6
7
7
<% unless options[:singleton] -%>
8
8
it "routes to #index" do
9
- get( "/<%= ns_table_name %>").should route_to("<%= ns_table_name %>#index")
9
+ expect(:get => "/<%= ns_table_name %>").to route_to("<%= ns_table_name %>#index")
10
10
end
11
11
12
12
<% end -%>
13
13
it "routes to #new" do
14
- get( "/<%= ns_table_name %>/new").should route_to("<%= ns_table_name %>#new")
14
+ expect(:get => "/<%= ns_table_name %>/new").to route_to("<%= ns_table_name %>#new")
15
15
end
16
16
17
17
it "routes to #show" do
18
- get( "/<%= ns_table_name %>/1").should route_to("<%= ns_table_name %>#show", :id => "1")
18
+ expect(:get => "/<%= ns_table_name %>/1").to route_to("<%= ns_table_name %>#show", :id => "1")
19
19
end
20
20
21
21
it "routes to #edit" do
22
- get( "/<%= ns_table_name %>/1/edit").should route_to("<%= ns_table_name %>#edit", :id => "1")
22
+ expect(:get => "/<%= ns_table_name %>/1/edit").to route_to("<%= ns_table_name %>#edit", :id => "1")
23
23
end
24
24
25
25
it "routes to #create" do
26
- post( "/<%= ns_table_name %>").should route_to("<%= ns_table_name %>#create")
26
+ expect(:post => "/<%= ns_table_name %>").to route_to("<%= ns_table_name %>#create")
27
27
end
28
28
29
29
it "routes to #update" do
30
- put( "/<%= ns_table_name %>/1").should route_to("<%= ns_table_name %>#update", :id => "1")
30
+ expect(:put => "/<%= ns_table_name %>/1").to route_to("<%= ns_table_name %>#update", :id => "1")
31
31
end
32
32
33
33
it "routes to #destroy" do
34
- delete( "/<%= ns_table_name %>/1").should route_to("<%= ns_table_name %>#destroy", :id => "1")
34
+ expect(:delete => "/<%= ns_table_name %>/1").to route_to("<%= ns_table_name %>#destroy", :id => "1")
35
35
end
36
36
37
37
end
You can’t perform that action at this time.
0 commit comments