Skip to content
Extraits de code Groupes Projets
Valider a357cf92 rédigé par Raphael Sofaer's avatar Raphael Sofaer
Parcourir les fichiers

Fix build... damn question marks.

parent 495dd89d
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -65,7 +65,8 @@ describe RegistrationsController do
it "redirects to the home path" do
get :create, @valid_params
response.should redirect_to aspects_path
response.should be_redirect
response.location.should match /^#{aspects_url}\??$/
end
end
......
......@@ -26,13 +26,15 @@ describe SessionsController do
describe "#create" do
it "redirects to /aspects for a non-mobile user" do
post :create, {"user" => {"remember_me" => "0", "username" => @user.username, "password" => "evankorth"}}
response.should redirect_to aspects_path
response.should be_redirect
response.location.should match /^#{aspects_url}\??$/
end
it "redirects to /aspects for a mobile user" do
@request.env['HTTP_USER_AGENT'] = 'Mozilla/5.0 (iPhone; U; CPU iPhone OS 4_1 like Mac OS X; en-us) AppleWebKit/532.9 (KHTML, like Gecko) Version/4.0.5 Mobile/8B117 Safari/6531.22.7'
post :create, {"user" => {"remember_me" => "0", "username" => @user.username, "password" => "evankorth"}}
response.should redirect_to aspects_path
response.should be_redirect
response.location.should match /^#{aspects_url}\??$/
end
it 'queues up an update job' do
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter