clone 你的源码 (https://github.com/sishen/chathip.git) 没做改动。
@yedingding 在 railscast-china live-show 1 中 sessions_controller.测试不能通过。始终报的错误为:
1) SessionsController#create #has user should login in
Failure/Error: post :create
ActionController::RoutingError:
No route matches {:controller=>"sessions", :action=>"create"}
# ./spec/controllers/sessions_controller_spec.rb:22:in block (5 levels) in <top (required)>'
# ./spec/controllers/sessions_controller_spec.rb:21:in
block (4 levels) in '
2) SessionsController#create #new user should create the user Failure/Error: post :create ActionController::RoutingError: No route matches {:controller=>"sessions", :action=>"create"} # ./spec/controllers/sessions_controller_spec.rb:40:in `block (4 levels) in '
求解!谢谢!