Files
postter/spec/routing/users_routing_spec.rb
2022-02-28 17:39:06 -03:00

10 lines
224 B
Ruby

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", format: :json)
end
end
end