Upgrade to Rails 6.0 and apply new framework defaults

This commit is contained in:
Sebastian Serth
2021-05-10 22:04:49 +02:00
parent 3c4ff307af
commit 8378070bc2
25 changed files with 232 additions and 171 deletions

View File

@ -17,7 +17,7 @@ end
def expect_content_type(content_type)
it "responds with content type '#{content_type}'" do
expect([response.content_type, response.headers['Content-Type']]).to include(content_type)
expect([response.media_type, response.headers['Content-Type']]).to include(content_type)
end
end