use json as default response format

This commit is contained in:
João Victor Geonizeli
2022-02-28 17:39:06 -03:00
parent fb156eef7e
commit 1afef88925
4 changed files with 11 additions and 9 deletions

View File

@@ -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