We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0e3d689 commit 5780b19Copy full SHA for 5780b19
features/request_specs/request_spec.feature
@@ -119,10 +119,7 @@ Feature: request spec
119
RSpec.describe "Widget management", :type => :request do
120
121
it "creates a Widget" do
122
- headers = {
123
- "ACCEPT" => "application/json", # This is what Rails 4 accepts
124
- "HTTP_ACCEPT" => "application/json" # This is what Rails 3 accepts
125
- }
+ headers = { "ACCEPT" => "application/json" }
126
post "/widgets", :params => { :widget => {:name => "My Widget"} }, :headers => headers
127
128
expect(response.content_type).to eq("application/json")
0 commit comments