Skip to content

Commit

Permalink
Fix #vc_test_request example (#2119)
Browse files Browse the repository at this point in the history
* Fix #vc_test_request example

Fix the example provided for #vc_test_request to use "vc_test_request" instead of "request".

* Update CHANGELOG
  • Loading branch information
betogrun authored Oct 7, 2024
1 parent a937895 commit f4b5e18
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ nav_order: 5

*Denis Pasin*

* Fix the example of #vc_test_request in the API reference to use the correct method name.

*Alberto Rocha*

## 3.16.0

* Add template information to multiple template error messages.
Expand Down
2 changes: 1 addition & 1 deletion docs/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ Access the request used by `render_inline`:

```ruby
test "component does not render in Firefox" do
request.env["HTTP_USER_AGENT"] = "Mozilla/5.0"
vc_test_request.env["HTTP_USER_AGENT"] = "Mozilla/5.0"
render_inline(NoFirefoxComponent.new)
refute_component_rendered
end
Expand Down

0 comments on commit f4b5e18

Please sign in to comment.