diff options
author | Louise Crow <louise.crow@gmail.com> | 2014-05-15 16:02:56 +0100 |
---|---|---|
committer | Louise Crow <louise.crow@gmail.com> | 2014-05-15 16:02:56 +0100 |
commit | b3fa23047bf96bd6a08273c9491ac1ee3b4a3f80 (patch) | |
tree | a0909096e51103b8a759b8ae19280be0648ab57c | |
parent | 98236b5829d23738796af9fe9c395485ad197d74 (diff) |
Update specs for changes to translations in 962e1d2b0edb6c0933ba42dd7690c38ba7d08f91
-rw-r--r-- | spec/helpers/track_helper_spec.rb | 48 |
1 files changed, 24 insertions, 24 deletions
diff --git a/spec/helpers/track_helper_spec.rb b/spec/helpers/track_helper_spec.rb index 80857067b..b6252ab39 100644 --- a/spec/helpers/track_helper_spec.rb +++ b/spec/helpers/track_helper_spec.rb @@ -12,22 +12,22 @@ describe TrackHelper do end it 'should create an already subscribed_notice' do - expected = %Q(You are already subscribed to <a href="/search/Example%20Query/newest/advanced">this search</a>) + expected = %Q(You are already subscribed to <a href="/search/Example%20Query/newest/advanced">this search</a>.) already_subscribed_notice(@track_thing).should == expected end it 'should create an email subscription notice' do - expected = %Q(You will now be emailed updates about <a href="/search/Example%20Query/newest/advanced">this search</a>) + expected = %Q(You will now be emailed updates about <a href="/search/Example%20Query/newest/advanced">this search</a>.) subscribe_email_notice(@track_thing).should == expected end it 'should create a following subscription notice' do - expected = %Q(You are now <a href="#{show_user_wall_path(:url_name => @track_thing.tracking_user.url_name)}">following</a> updates about <a href="/search/Example%20Query/newest/advanced">this search</a>) + expected = %Q(You are now <a href="#{show_user_wall_path(:url_name => @track_thing.tracking_user.url_name)}">following</a> updates about <a href="/search/Example%20Query/newest/advanced">this search</a>.) subscribe_follow_notice(@track_thing).should == expected end it 'should create an unsubscribe notice' do - expected = %Q(You are no longer following <a href="/search/Example%20Query/newest/advanced">this search</a>) + expected = %Q(You are no longer following <a href="/search/Example%20Query/newest/advanced">this search</a>.) unsubscribe_notice(@track_thing).should == expected end @@ -45,22 +45,22 @@ describe TrackHelper do end it 'should create an already subscribed_notice' do - expected = %Q(You are already subscribed to '#{user_link(@track_thing.tracked_user)}', a person) + expected = %Q(You are already subscribed to '#{user_link(@track_thing.tracked_user)}', a person.) already_subscribed_notice(@track_thing).should == expected end it 'should create an email subscription notice' do - expected = %Q(You will now be emailed updates about '#{user_link(@track_thing.tracked_user)}', a person) + expected = %Q(You will now be emailed updates about '#{user_link(@track_thing.tracked_user)}', a person.) subscribe_email_notice(@track_thing).should == expected end it 'should create a following subscription notice' do - expected = %Q(You are now <a href="#{show_user_wall_path(:url_name => @track_thing.tracking_user.url_name)}">following</a> updates about '#{user_link(@track_thing.tracked_user)}', a person) + expected = %Q(You are now <a href="#{show_user_wall_path(:url_name => @track_thing.tracking_user.url_name)}">following</a> updates about '#{user_link(@track_thing.tracked_user)}', a person.) subscribe_follow_notice(@track_thing).should == expected end it 'should create an unsubscribe notice' do - expected = %Q(You are no longer following '#{user_link(@track_thing.tracked_user)}', a person) + expected = %Q(You are no longer following '#{user_link(@track_thing.tracked_user)}', a person.) unsubscribe_notice(@track_thing).should == expected end @@ -78,22 +78,22 @@ describe TrackHelper do end it 'should create an already subscribed_notice' do - expected = %Q(You are already subscribed to '#{public_body_link(@track_thing.public_body)}', a public authority) + expected = %Q(You are already subscribed to '#{public_body_link(@track_thing.public_body)}', a public authority.) already_subscribed_notice(@track_thing).should == expected end it 'should create an email subscription notice' do - expected = %Q(You will now be emailed updates about '#{public_body_link(@track_thing.public_body)}', a public authority) + expected = %Q(You will now be emailed updates about '#{public_body_link(@track_thing.public_body)}', a public authority.) subscribe_email_notice(@track_thing).should == expected end it 'should create a following subscription notice' do - expected = %Q(You are now <a href="#{show_user_wall_path(:url_name => @track_thing.tracking_user.url_name)}">following</a> updates about '#{public_body_link(@track_thing.public_body)}', a public authority) + expected = %Q(You are now <a href="#{show_user_wall_path(:url_name => @track_thing.tracking_user.url_name)}">following</a> updates about '#{public_body_link(@track_thing.public_body)}', a public authority.) subscribe_follow_notice(@track_thing).should == expected end it 'should create an unsubscribe notice' do - expected = %Q(You are no longer following '#{public_body_link(@track_thing.public_body)}', a public authority) + expected = %Q(You are no longer following '#{public_body_link(@track_thing.public_body)}', a public authority.) unsubscribe_notice(@track_thing).should == expected end @@ -110,22 +110,22 @@ describe TrackHelper do end it 'should create an already subscribed_notice' do - expected = %Q(You are already subscribed to any <a href="/list/successful">successful requests</a>) + expected = %Q(You are already subscribed to any <a href="/list/successful">successful requests</a>.) already_subscribed_notice(@track_thing).should == expected end it 'should create an email subscription notice' do - expected = %Q(You will now be emailed updates about <a href="/list/successful">successful requests</a>) + expected = %Q(You will now be emailed updates about <a href="/list/successful">successful requests</a>.) subscribe_email_notice(@track_thing).should == expected end it 'should create a following subscription notice' do - expected = %Q(You are now <a href="#{show_user_wall_path(:url_name => @track_thing.tracking_user.url_name)}">following</a> updates about <a href="/list/successful">successful requests</a>) + expected = %Q(You are now <a href="#{show_user_wall_path(:url_name => @track_thing.tracking_user.url_name)}">following</a> updates about <a href="/list/successful">successful requests</a>.) subscribe_follow_notice(@track_thing).should == expected end it 'should create an unsubscribe notice' do - expected = %Q(You are no longer following <a href="/list/successful">successful requests</a>) + expected = %Q(You are no longer following <a href="/list/successful">successful requests</a>.) unsubscribe_notice(@track_thing).should == expected end @@ -142,22 +142,22 @@ describe TrackHelper do end it 'should create an already subscribed_notice' do - expected = %Q(You are already subscribed to any <a href="/list">new requests</a>) + expected = %Q(You are already subscribed to any <a href="/list">new requests</a>.) already_subscribed_notice(@track_thing).should == expected end it 'should create an email subscription notice' do - expected = %Q(You will now be emailed updates about any <a href="/list">new requests</a>) + expected = %Q(You will now be emailed updates about any <a href="/list">new requests</a>.) subscribe_email_notice(@track_thing).should == expected end it 'should create a following subscription notice' do - expected = %Q(You are now <a href="#{show_user_wall_path(:url_name => @track_thing.tracking_user.url_name)}">following</a> updates about <a href="/list">new requests</a>) + expected = %Q(You are now <a href="#{show_user_wall_path(:url_name => @track_thing.tracking_user.url_name)}">following</a> updates about <a href="/list">new requests</a>.) subscribe_follow_notice(@track_thing).should == expected end it 'should create an unsubscribe notice' do - expected = %Q(You are no longer following <a href="/list">new requests</a>) + expected = %Q(You are no longer following <a href="/list">new requests</a>.) unsubscribe_notice(@track_thing).should == expected end @@ -175,22 +175,22 @@ describe TrackHelper do end it 'should create an already subscribed_notice' do - expected = %Q(You are already subscribed to '#{request_link(@track_thing.info_request)}', a request) + expected = %Q(You are already subscribed to '#{request_link(@track_thing.info_request)}', a request.) already_subscribed_notice(@track_thing).should == expected end it 'should create an email subscription notice' do - expected = %Q(You will now be emailed updates about '#{request_link(@track_thing.info_request)}', a request) + expected = %Q(You will now be emailed updates about '#{request_link(@track_thing.info_request)}', a request.) subscribe_email_notice(@track_thing).should == expected end it 'should create a following subscription notice' do - expected = %Q(You are now <a href="#{show_user_wall_path(:url_name => @track_thing.tracking_user.url_name)}">following</a> updates about '#{request_link(@track_thing.info_request)}', a request) + expected = %Q(You are now <a href="#{show_user_wall_path(:url_name => @track_thing.tracking_user.url_name)}">following</a> updates about '#{request_link(@track_thing.info_request)}', a request.) subscribe_follow_notice(@track_thing).should == expected end it 'should create an unsubscribe notice' do - expected = %Q(You are no longer following '#{request_link(@track_thing.info_request)}', a request) + expected = %Q(You are no longer following '#{request_link(@track_thing.info_request)}', a request.) unsubscribe_notice(@track_thing).should == expected end |