diff options
author | Vipul A M <vipulnsward@gmail.com> | 2016-07-15 19:03:46 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-07-15 19:03:46 -0700 |
commit | 4d74d4f3548c8309ec56561282f4adb69c30ee70 (patch) | |
tree | 5c6626a1d8dd5ca93f7a700f84f4cf5a962de39b /guides | |
parent | d41d7a42147c6aca7e4544f20f831272e15ba6ca (diff) | |
parent | 777ae60ddf9e9e2863bdc0a496922ef0d3f5d756 (diff) | |
download | rails-4d74d4f3548c8309ec56561282f4adb69c30ee70.tar.gz rails-4d74d4f3548c8309ec56561282f4adb69c30ee70.tar.bz2 rails-4d74d4f3548c8309ec56561282f4adb69c30ee70.zip |
Merge pull request #25851 from y-yagi/add_missing_braces
add missing braces [ci skip]
Diffstat (limited to 'guides')
-rw-r--r-- | guides/source/testing.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/guides/source/testing.md b/guides/source/testing.md index 440d87bf73..26d50bec0c 100644 --- a/guides/source/testing.md +++ b/guides/source/testing.md @@ -879,10 +879,10 @@ can be passed as headers: ```ruby # setting an HTTP Header -get articles_url, headers: "Content-Type" => "text/plain" # simulate the request with custom header +get articles_url, headers: { "Content-Type": "text/plain" } # simulate the request with custom header # setting a CGI variable -get articles_url, headers: "HTTP_REFERER" => "http://example.com/home" # simulate the request with custom env variable +get articles_url, headers: { "HTTP_REFERER": "http://example.com/home" } # simulate the request with custom env variable ``` ### Testing `flash` notices |