diff options
author | drbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-07-23 05:38:50 +0000 |
---|---|---|
committer | drbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-07-23 05:38:50 +0000 |
commit | c93ed570a2991f5ec059526941f442eadacc3cb1 (patch) | |
tree | cb70e0ff69911e3e49ba770fc49dcb12813b7185 /test/rake/test_rake_task.rb | |
parent | 12d9be6b727bdfe605fc65f18659c4cb4d4b283c (diff) | |
download | ruby-c93ed570a2991f5ec059526941f442eadacc3cb1.tar.gz |
* test/rake*: Remove dependencies on flexmock and session gems.
[Ruby 1.9 - Bug #4987]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32636 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/rake/test_rake_task.rb')
-rw-r--r-- | test/rake/test_rake_task.rb | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/test/rake/test_rake_task.rb b/test/rake/test_rake_task.rb index ebbcb2ac2d..a5bc693237 100644 --- a/test/rake/test_rake_task.rb +++ b/test/rake/test_rake_task.rb @@ -208,10 +208,7 @@ class TestRakeTask < Rake::TestCase b = task :b c = task :c - faux_stamp = 100 - flexmock(Time, :now => faux_stamp) - - assert_equal faux_stamp, a.timestamp + assert_in_delta Time.now, a.timestamp, 0.1, 'computer too slow?' end def test_timestamp_returns_latest_prereq_timestamp @@ -219,12 +216,11 @@ class TestRakeTask < Rake::TestCase b = task :b c = task :c - faux_stamp = 100 - flexmock(Time, :now => faux_stamp-10) - flexmock(b, :timestamp => faux_stamp - 1) - flexmock(c, :timestamp => faux_stamp) + now = Time.now + def b.timestamp() Time.now + 10 end + def c.timestamp() Time.now + 5 end - assert_equal faux_stamp, a.timestamp + assert_in_delta now + 10, a.timestamp, 0.1, 'computer too slow?' end def test_investigation_output |