Commit c774d83b275550953483b4eaff405c36c63f6bf5
1 parent
22235d76
Exists in
master
and in
29 other branches
ActionItem355: fixing profile_helper tests
git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@1829 3f533792-8f58-4932-b0fe-aaf55b0a4547
Showing
1 changed file
with
2 additions
and
1 deletions
Show diff stats
test/unit/profile_helper_test.rb
| ... | ... | @@ -22,6 +22,7 @@ class ProfileHelperTest < Test::Unit::TestCase |
| 22 | 22 | |
| 23 | 23 | helper.expects(:content_tag).returns('').at_least_once |
| 24 | 24 | |
| 25 | + helper.expects(:_).at_least_once | |
| 25 | 26 | helper.expects(:_).with('edit your information').returns('edit your information') |
| 26 | 27 | helper.expects(:button).with(:edit, 'edit your information', :controller => 'profile_editor', :action => 'edit').returns("BUTTON") |
| 27 | 28 | |
| ... | ... | @@ -35,7 +36,7 @@ class ProfileHelperTest < Test::Unit::TestCase |
| 35 | 36 | |
| 36 | 37 | helper.expects(:instance_eval).with(myproc) |
| 37 | 38 | |
| 38 | - helper.expects(:_) | |
| 39 | + helper.expects(:_).at_least_once | |
| 39 | 40 | helper.expects(:button).returns('') |
| 40 | 41 | |
| 41 | 42 | helper.display_profile_info(profile) | ... | ... |