+ assert_response :success
+ assert_template "login"
+ assert_select "input#username", 1 do
+ assert_select "[value=?]", username
+ end
+ assert_select "input#password", 1 do
+ assert_select "[value=?]", ""
+ end
+ assert_select "input#remember_me", 1 do
+ assert_select "[checked]", remember_me == "yes"
+ end
+
+ post "/login", :params => { :username => username, :password => password, :remember_me => remember_me, :referer => "/history" }