Commit 1cb8eaf06d1a5e7890776967093f8646a9b9c741
1 parent
173c8a87
Exists in
master
and in
29 other branches
Fixing test
(ActionItem1256)
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
test/unit/profile_test.rb
@@ -746,8 +746,8 @@ class ProfileTest < Test::Unit::TestCase | @@ -746,8 +746,8 @@ class ProfileTest < Test::Unit::TestCase | ||
746 | p = Profile.new | 746 | p = Profile.new |
747 | p.expects(:region).returns(nil) | 747 | p.expects(:region).returns(nil) |
748 | e = Environment.default | 748 | e = Environment.default |
749 | - p.expects(:environment).returns(e) | ||
750 | - e.expects(:location).returns('Brasil') | 749 | + p.stubs(:environment).returns(e) |
750 | + e.stubs(:location).returns('Brasil') | ||
751 | assert_equal 'Brasil', p.geolocation | 751 | assert_equal 'Brasil', p.geolocation |
752 | end | 752 | end |
753 | 753 |