Skip to content

Commit

Permalink
Merge pull request #49291 from hungmi/fix-typos-in-action-view-test-c…
Browse files Browse the repository at this point in the history
…ase-documentation

[ci skip] Edit anchors in Testing View Partials to match targets
  • Loading branch information
skipkayhil committed Sep 15, 2023
2 parents a50be00 + f423447 commit d21d811
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions guides/source/testing.md
Expand Up @@ -1713,7 +1713,7 @@ class ArticlePartialTest < ActionView::TestCase
end
```

Tests that inherit from `ActionView::TestCase` also have access to [`assert_select`](#Testing-Views) and the [other additional view-based assertions](#Additional-View-Based-Assertions) provided by [rails-dom-testing][]:
Tests that inherit from `ActionView::TestCase` also have access to [`assert_select`](#testing-views) and the [other additional view-based assertions](#additional-view-based-assertions) provided by [rails-dom-testing][]:

```ruby
test "renders a link to itself" do
Expand Down Expand Up @@ -1760,7 +1760,7 @@ end
```

If you'd like to access the same [Capybara-powered Assertions](https://rubydoc.info/github/teamcapybara/capybara/master/Capybara/Minitest/Assertions)
that your [Functional and System Testing](#Functional-and-System-Testing) tests
that your [Functional and System Testing](#functional-and-system-testing) tests
utilize, you can define a base class that inherits from `ActionView::TestCase`
and transforms the `document_root_element` into a `page` method:

Expand Down

0 comments on commit d21d811

Please sign in to comment.