Skip to content

Commit f4b5e18

Browse files
authored
Fix #vc_test_request example (#2119)
* Fix #vc_test_request example Fix the example provided for #vc_test_request to use "vc_test_request" instead of "request". * Update CHANGELOG
1 parent a937895 commit f4b5e18

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

docs/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ nav_order: 5
2222

2323
*Denis Pasin*
2424

25+
* Fix the example of #vc_test_request in the API reference to use the correct method name.
26+
27+
*Alberto Rocha*
28+
2529
## 3.16.0
2630

2731
* Add template information to multiple template error messages.

docs/api.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ Access the request used by `render_inline`:
343343

344344
```ruby
345345
test "component does not render in Firefox" do
346-
request.env["HTTP_USER_AGENT"] = "Mozilla/5.0"
346+
vc_test_request.env["HTTP_USER_AGENT"] = "Mozilla/5.0"
347347
render_inline(NoFirefoxComponent.new)
348348
refute_component_rendered
349349
end

0 commit comments

Comments
 (0)