Skip to content

Commit 5780b19

Browse files
committed
No need to deal with Rails 3 in a filtered feature test
This feature test is filtered on @rails_post_5
1 parent 0e3d689 commit 5780b19

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

features/request_specs/request_spec.feature

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -119,10 +119,7 @@ Feature: request spec
119119
RSpec.describe "Widget management", :type => :request do
120120
121121
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-
}
122+
headers = { "ACCEPT" => "application/json" }
126123
post "/widgets", :params => { :widget => {:name => "My Widget"} }, :headers => headers
127124
128125
expect(response.content_type).to eq("application/json")

0 commit comments

Comments
 (0)