Commit 6c8063ab31cfcb38e0c1dfcd6e38293d04079bbc
1 parent
8d0004fb
Exists in
master
and in
29 other branches
ActionItem1049: fixing tests
Showing
2 changed files
with
3 additions
and
3 deletions
Show diff stats
app/models/article_block.rb
test/functional/profile_controller_test.rb
... | ... | @@ -135,7 +135,7 @@ class ProfileControllerTest < Test::Unit::TestCase |
135 | 135 | should 'show friends link to person' do |
136 | 136 | person = create_user('person_1').person |
137 | 137 | get :index, :profile => person.identifier |
138 | - assert_tag :tag => 'a', :content => 'Friends', :attributes => { :href => /profile\/#{person.identifier}\/friends$/ } | |
138 | + assert_tag :tag => 'a', :content => /Friends/, :attributes => { :href => /profile\/#{person.identifier}\/friends$/ } | |
139 | 139 | end |
140 | 140 | |
141 | 141 | should 'not show homepage and feed automatically created on recent content' do |
... | ... | @@ -336,7 +336,7 @@ class ProfileControllerTest < Test::Unit::TestCase |
336 | 336 | login_as 'tusr1' |
337 | 337 | |
338 | 338 | get :index, :profile => 'tusr2' |
339 | - assert_tag :content => /t2@t2.com/ | |
339 | + assert_tag :content => /t2.*t2.com/ | |
340 | 340 | end |
341 | 341 | |
342 | 342 | should 'not show e-mail for non friends on profile page' do | ... | ... |