In the routes file I have:
resources :subscription, :only => [:show], :constraints => {:protocol => "https"}
I am trying to add a specification for this route as follows:
it "recognizes and generates #show" do { :get => "/subscription", :protocol => 'https' }.should route_to(:controller => "subscriptions", :action => "show") end
However, the specification still does not work. If I remove :protocol => 'https' , the specification also fails:
ActionController :: RoutingError:
No route matches "/ subscription"
source share