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 59b2f36 commit dee7332Copy full SHA for dee7332
features/request_specs/request_spec.feature
@@ -167,9 +167,9 @@ Feature: request spec
167
168
it "creates a Widget" do
169
headers = { "ACCEPT" => "application/json" }
170
- post "/widgets", :params => { :widget => {:name => "My Widget"} }, :headers => headers
+ post "/widgets", :params => { :widget => { :name => "My Widget" } }, :headers => headers
171
172
- expect(response.content_type).to eq("application/json; charset=utf-8")
+ expect(response.content_type).to start_with("application/json")
173
expect(response).to have_http_status(:created)
174
end
175
0 commit comments