summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/rinda/ring.rb2
-rw-r--r--test/rinda/test_rinda.rb4
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/rinda/ring.rb b/lib/rinda/ring.rb
index e9e92d2563..9b3e273ea1 100644
--- a/lib/rinda/ring.rb
+++ b/lib/rinda/ring.rb
@@ -48,7 +48,7 @@ module Rinda
##
# Set to false to shutdown future requests using this Renewer
- attr_accessor :renew
+ attr_writer :renew
def initialize # :nodoc:
@renew = true
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