Skip to content

Commit

Permalink
Using text/html in spec instead of text/plain
Browse files Browse the repository at this point in the history
text/plain throws an unknown content type error rails/rails#3234
  • Loading branch information
iloveitaly committed Mar 17, 2016
1 parent 856564d commit 316556c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/controllers/cangaroo/endpoint_controller_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ module Cangaroo
it 'accepts only application/json requests' do
expect(response.status).to eq(202)

request.headers['Content-Type'] = 'application/text'
request.headers['Content-Type'] = 'text/html'
post :create
expect(response.status).to eq(406)
end
Expand Down

0 comments on commit 316556c

Please sign in to comment.