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
17
17
18
18
RSpec provides two matchers that delegate to Rails assertions:
19
19
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
+ ```
24
24
25
25
Check the Rails docs for details on these methods as well.
26
26
Original file line number Diff line number Diff line change @@ -4,14 +4,14 @@ Feature: `route_to` matcher
4
4
It is most valuable when specifying routes other than standard RESTful
5
5
routes.
6
6
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
+ ```
10
10
or
11
11
12
- ```ruby
13
- expect(:get => "/" ).to route_to(:controller => "welcome" )
14
- ```
12
+ ```ruby
13
+ expect(:get => "/" ).to route_to(:controller => "welcome" )
14
+ ```
15
15
16
16
Scenario : Passing route spec with shortcut syntax
17
17
Given a file named "spec/routing/widgets_routing_spec.rb" with:
You can’t perform that action at this time.
0 commit comments