user_routing_spec.rb 236 Bytes Edit Raw Blame History 1 2 3 4 5 6 7 8 require "rails_helper" describe UsersController, :type => :routing do describe "routing" do it { is_expected.to route(:get, '/users/1/projects'). to(controller: :users, action: :projects, user_id: 1) } end end