- assert_redirected_to "controller" => "user", "action" => "terms", :referer => "/traces/mine"
- get "/traces/mine", :referer => "/test"
- assert_redirected_to "controller" => "user", "action" => "terms", :referer => "/test"
+ assert_redirected_to :controller => :user, :action => :terms, :referer => "/traces/mine"
+ get "/traces/mine", :params => { :referer => "/diary/new" }
+ assert_redirected_to :controller => :user, :action => :terms, :referer => "/diary/new"