Skip to content

Commit 283d8c6

Browse files
Matching feature file code block indents with surrounding text.
1 parent f5c65cc commit 283d8c6

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

features/request_specs/request_spec.feature

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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

features/routing_specs/route_to_matcher.feature

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff 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:

0 commit comments

Comments
 (0)