Created
June 14, 2012 23:01
-
-
Save ch1ago/2933532 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
strange, I get this evil routing error in rspec, but the browser works fine | |
---------- | |
routes.rb | |
get "home/user_school/:token" => "home#user_school", as: 'home_user_school' | |
---------------------------------------- | |
describe HomeController do | |
describe "routing" do | |
it "routes to #user_school" do | |
get("/home/user_school/a").should route_to("home#user_school", token: 'a') | |
end | |
----------- testing | |
Failures: | |
1) HomeController routing routes to #user_school | |
Failure/Error: get("/home/user_school/a").should route_to("home#user_school", token: 'a') | |
No route matches "/home/user_school/a" | |
# ./spec/routing/home_routing_spec.rb:26:in `block (3 levels) in <top (required)>' | |
Finished in 1.48 seconds | |
42 examples, 1 failure | |
----------- development | |
home_user_school_path(@school_user_request.confirmation_token) | |
Started GET "/home/user_assign_to_school/3bcbe3d83bc97a222fd79c1d0753f1c9" for 127.0.0.1 at 2012-06-14 19:50:21 -0300 | |
Processing by HomeController#user_assign_to_school as HTML | |
Parameters: {"confirmation_token"=>"3bcbe3d83bc97a222fd79c1d0753f1c9"} | |
that isn't funny :( |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment