Fix build... damn question marks.
This commit is contained in:
parent
495dd89dd2
commit
a357cf9217
2 changed files with 6 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue