File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
features/controller_specs Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -64,8 +64,8 @@ To specify outcomes, you can use:
64
64
# # Headers
65
65
66
66
We encourage you to use [request specs](https: // relishapp.com/ rspec/ rspec- rails/ docs/ request- specs/ request- spec) if you want
67
- to set headers in your call. If you still want to use a controller specs with custom http headers
68
- you could use ` request.headers` :
67
+ to set headers in your call. If you still want to use controller specs with custom http headers
68
+ you can use ` request.headers` :
69
69
70
70
require " rails_helper"
71
71
Original file line number Diff line number Diff line change 1
1
Feature : Headers
2
2
3
- We recommend you to switch to request spec instead of controller spec
3
+ We recommend you to switch to request specs instead of controller specs
4
4
if you want to set headers in your call.
5
- If you still want to set headers in controller spec , you can use
5
+ If you still want to set headers in controller specs , you can use
6
6
`request.headers` as mentioned bellow.
7
7
8
- Scenario : Set header's value in controller spec
8
+ Scenario : Setting a header value in a controller spec
9
9
Given a file named "spec/controllers/application_controller_spec.rb" with:
10
10
"""ruby
11
11
require "rails_helper"
You can’t perform that action at this time.
0 commit comments