Skip to content

Commit bff9598

Browse files
committed
Resolve Upgrading Rails lint violation
Follow-up to [rails#49474][] Execute documentation change in CI so that the linters can scan the documentation's code blocks. [rails#49474]: rails#49474 (comment)
1 parent d7e401d commit bff9598

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

guides/source/upgrading_ruby_on_rails.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ responds to various format methods (for example, `rendered.html` and
266266
test. For example, the following [assert_match][] assertion will pass:
267267

268268
```ruby
269-
assert_match /some content/i, rendered
269+
assert_match(/some content/i, rendered)
270270
```
271271

272272
However, if your tests rely on `ActionView::TestCase#rendered` returning an
@@ -283,7 +283,6 @@ end
283283

284284
[assert_match]: https://docs.seattlerb.org/minitest/Minitest/Assertions.html#method-i-assert_match
285285

286-
287286
Upgrading from Rails 6.1 to Rails 7.0
288287
-------------------------------------
289288

0 commit comments

Comments
 (0)