The route_to matcher specifies that a request (verb + path) is routable. It is most valuable when specifying routes other than standard RESTful routes. expect(get("/")).to route_to("welcome#index") # new in 2.6.0 or expect(:get => "/").to route_to(:controller => "welcome") require "rails_helper" RSpec.describe "routes for Widgets", :type => :routing do it "routes /widgets to the widgets controller