Skip to content

Commit fe5df52

Browse files
committed
Fix accessing Mime types in specs.
Following rails 5 deprecation of accessing MIME types via constant.
1 parent bfacc3b commit fe5df52

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spec/integration/rails/persistence_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ def do_put(id)
5252
end
5353

5454
before do
55-
@request.headers['Accept'] = Mime::JSON
56-
@request.headers['Content-Type'] = Mime::JSON.to_s
55+
@request.headers['Accept'] = Mime[:json]
56+
@request.headers['Content-Type'] = Mime[:json].to_s
5757

5858
routes.draw {
5959
post "create" => "anonymous#create"

0 commit comments

Comments
 (0)