From 1cb8eaf06d1a5e7890776967093f8646a9b9c741 Mon Sep 17 00:00:00 2001 From: Antonio Terceiro Date: Fri, 4 Dec 2009 09:31:10 -0300 Subject: [PATCH] Fixing test --- test/unit/profile_test.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/unit/profile_test.rb b/test/unit/profile_test.rb index 41c0621..0f47b7b 100644 --- a/test/unit/profile_test.rb +++ b/test/unit/profile_test.rb @@ -746,8 +746,8 @@ class ProfileTest < Test::Unit::TestCase p = Profile.new p.expects(:region).returns(nil) e = Environment.default - p.expects(:environment).returns(e) - e.expects(:location).returns('Brasil') + p.stubs(:environment).returns(e) + e.stubs(:location).returns('Brasil') assert_equal 'Brasil', p.geolocation end -- libgit2 0.21.2