spec/controllers/terms_controller_spec.rb in qa-5.0.0 vs spec/controllers/terms_controller_spec.rb in qa-5.1.0
- old
+ new
@@ -234,11 +234,11 @@
.to_return(status: 200, body: webmock_fixture("discogs-find-response-json.json"))
end
it 'Access-Control-Allow-Origin is not present' do
get :show, params: { vocab: "discogs", subauthority: "release", id: "3380671", format: 'n3' }
expect(response).to be_successful
- expect(response.content_type).to eq 'text/n3'
+ expect(response.media_type).to eq 'text/n3'
expect(response.body).to start_with "@prefix"
end
end
context "with request for ntriples" do
before do
@@ -246,10 +246,10 @@
.to_return(status: 200, body: webmock_fixture("discogs-find-response-json.json"))
end
it 'Access-Control-Allow-Origin is not present' do
get :show, params: { vocab: "discogs", subauthority: "release", id: "3380671", format: 'ntriples' }
expect(response).to be_successful
- expect(response.content_type).to eq 'application/n-triples'
+ expect(response.media_type).to eq 'application/n-triples'
expect(response.body).to include('_:agentn1 <http://www.w3.org/2000/01/rdf-schema#label> "Dexter Gordon"')
end
end
end
end