summaryrefslogtreecommitdiff
path: root/test/rinda
diff options
context:
space:
mode:
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