1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* 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
This commit is contained in:
drbrain 2011-07-23 05:38:50 +00:00
parent 12d9be6b72
commit c93ed570a2
11 changed files with 238 additions and 182 deletions

View file

@ -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