summaryrefslogtreecommitdiff
path: root/test/rinda
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-03-25 18:50:48 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-03-25 18:50:48 +0000
commiteaad7bedc9367396d6229dbd42b55194faa39e3b (patch)
tree37beb32447eca31a10447add4be7f28b3dc86741 /test/rinda
parent2149c313f4306925903eba207616d895a37f850c (diff)
Suppress warnings
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39929 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/rinda')
-rw-r--r--test/rinda/test_rinda.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/rinda/test_rinda.rb b/test/rinda/test_rinda.rb
index 82eb34568c..65df228751 100644
--- a/test/rinda/test_rinda.rb
+++ b/test/rinda/test_rinda.rb
@@ -50,7 +50,7 @@ class MockClock
end
def rewind
- now ,= @ts.take([nil, :now])
+ @ts.take([nil, :now])
@ts.write([@inf, :now])
@ts.take([nil, :now])
@now = 2
@@ -76,7 +76,7 @@ module Time
module_function :at
def now
- @m ? @m.now : 2
+ defined?(@m) && @m ? @m.now : 2
end
module_function :now