green specs

This commit is contained in:
danielgrippi 2011-10-23 19:18:54 -07:00
parent 06ad78f026
commit cff3f6ea49
3 changed files with 7 additions and 7 deletions

View file

@ -67,7 +67,7 @@ describe RegistrationsController do
it "redirects to the home path" do
get :create, @valid_params
response.should be_redirect
response.location.should match /^#{aspects_url}\??$/
response.location.should match /^#{multi_url}\??$/
end
end

View file

@ -24,17 +24,17 @@ describe SessionsController do
end
describe "#create" do
it "redirects to /aspects for a non-mobile user" do
it "redirects to /stream for a non-mobile user" do
post :create, {"user" => {"remember_me" => "0", "username" => @user.username, "password" => "evankorth"}}
response.should be_redirect
response.location.should match /^#{aspects_url}\??$/
response.location.should match /^#{multi_url}\??$/
end
it "redirects to /aspects for a mobile user" do
it "redirects to /stream 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 be_redirect
response.location.should match /^#{aspects_url}\??$/
response.location.should match /^#{multi_url}\??$/
end
it 'queues up an update job' do

View file

@ -72,8 +72,8 @@ describe NotificationsHelper do
end
it 'includes the boilerplate translation' do
output = object_link(@notification, notification_people_link(@notification))
output.should include t("#{@notification.popup_translation_key}.one",
output = object_link(@notification, notification_people_link(@notification))
output.should include t("#{@notification.popup_translation_key}.two",
:actors => notification_people_link(@notification),
:post_link => "<a href=\"#{post_path(@post)}\" class=\"hard_object_link\" data-ref=\"#{@post.id}\">#{t('notifications.post')}</a>")
end