Skip to content

Commit dee7332

Browse files
committed
Use start_with to assert content_type on subdomain request spec example
1 parent 59b2f36 commit dee7332

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

features/request_specs/request_spec.feature

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,9 +167,9 @@ Feature: request spec
167167
168168
it "creates a Widget" do
169169
headers = { "ACCEPT" => "application/json" }
170-
post "/widgets", :params => { :widget => {:name => "My Widget"} }, :headers => headers
170+
post "/widgets", :params => { :widget => { :name => "My Widget" } }, :headers => headers
171171
172-
expect(response.content_type).to eq("application/json; charset=utf-8")
172+
expect(response.content_type).to start_with("application/json")
173173
expect(response).to have_http_status(:created)
174174
end
175175
end

0 commit comments

Comments
 (0)