Skip to content

Commit

Permalink
test: add test for requesting .css file with API content type
Browse files Browse the repository at this point in the history
  • Loading branch information
bethesque committed May 19, 2019
1 parent afcee8d commit a37ff49
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions spec/lib/rack/pact_broker/ui_request_filter_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,15 @@ module PactBroker
expect(subject.status).to eq 404
end
end

context "when the request ends in a web asset extension but has Accept application/hal+json" do
let(:accept) { "application/hal+json" }
let(:path) { "/blah/foo.woff" }

it "returns a 404" do
expect(subject.status).to eq 404
end
end
end
end
end
Expand Down

0 comments on commit a37ff49

Please sign in to comment.