Skip to content

Commit

Permalink
No need to deal with Rails 3 in a filtered feature test
Browse files Browse the repository at this point in the history
This feature test is filtered on @rails_post_5
  • Loading branch information
benoittgt committed Jun 7, 2019
1 parent 0e3d689 commit 5780b19
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions features/request_specs/request_spec.feature
Original file line number Diff line number Diff line change
Expand Up @@ -119,10 +119,7 @@ Feature: request spec
RSpec.describe "Widget management", :type => :request do
it "creates a Widget" do
headers = {
"ACCEPT" => "application/json", # This is what Rails 4 accepts
"HTTP_ACCEPT" => "application/json" # This is what Rails 3 accepts
}
headers = { "ACCEPT" => "application/json" }
post "/widgets", :params => { :widget => {:name => "My Widget"} }, :headers => headers
expect(response.content_type).to eq("application/json")
Expand Down

0 comments on commit 5780b19

Please sign in to comment.