File tree Expand file tree Collapse file tree 2 files changed +10
-10
lines changed Expand file tree Collapse file tree 2 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -17,10 +17,10 @@ Feature: Request specs
1717
1818 RSpec provides two matchers that delegate to Rails assertions:
1919
20- ```ruby
21- render_template # delegates to assert_template
22- redirect_to # delegates to assert_redirected_to
23- ```
20+ ```ruby
21+ render_template # delegates to assert_template
22+ redirect_to # delegates to assert_redirected_to
23+ ```
2424
2525 Check the Rails docs for details on these methods as well.
2626
Original file line number Diff line number Diff line change @@ -4,14 +4,14 @@ Feature: `route_to` matcher
44 It is most valuable when specifying routes other than standard RESTful
55 routes.
66
7- ```ruby
8- expect(get("/" )).to route_to("welcome#index" ) # new in 2.6.0
9- ```
7+ ```ruby
8+ expect(get("/" )).to route_to("welcome#index" ) # new in 2.6.0
9+ ```
1010 or
1111
12- ```ruby
13- expect(:get => "/" ).to route_to(:controller => "welcome" )
14- ```
12+ ```ruby
13+ expect(:get => "/" ).to route_to(:controller => "welcome" )
14+ ```
1515
1616 Scenario : Passing route spec with shortcut syntax
1717 Given a file named "spec/routing/widgets_routing_spec.rb" with:
You can’t perform that action at this time.
0 commit comments