use json as default response format
This commit is contained in:
@@ -3,7 +3,7 @@ require "rails_helper"
|
||||
RSpec.describe UsersController, type: :routing do
|
||||
describe "routing" do
|
||||
it "routes to #show" do
|
||||
expect(get: "/users/1").to route_to("users#show", id: "1")
|
||||
expect(get: "/users/1").to route_to("users#show", id: "1", format: :json)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user