diff options
author | Alex Young <alex@bytemark.co.uk> | 2015-02-23 19:22:33 +0000 |
---|---|---|
committer | Alex Young <alex@bytemark.co.uk> | 2015-02-23 19:22:33 +0000 |
commit | 16ba9f08109ddb911e9aba8518a93d3df710a46b (patch) | |
tree | 0d7835a257ad5a4c47af47f6a2f7b67fe076f287 /test/th_mauve.rb | |
parent | b212665b4e5ecaf9652ab7d3cfcd20597b3ef436 (diff) |
Get tests passing on ruby 1.9.3-p551
Diffstat (limited to 'test/th_mauve.rb')
-rw-r--r-- | test/th_mauve.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/th_mauve.rb b/test/th_mauve.rb index 49e714b..3c5f048 100644 --- a/test/th_mauve.rb +++ b/test/th_mauve.rb @@ -5,14 +5,14 @@ require 'pp' require 'singleton' # Taken from -# +# # http://blog.ardes.com/2006/12/11/testing-singletons-with-ruby # -class <<Singleton +class << Singleton def included_with_reset(klass) included_without_reset(klass) - class <<klass + class << klass def reset_instance Singleton.send :__init__, self self @@ -88,7 +88,7 @@ module Mauve def logger_shift @outputter.shift end - + def teardown_logger logger = Log4r::Logger['Mauve'] return if logger.nil? @@ -105,7 +105,7 @@ module Mauve def teardown_database DataObjects::Pooling.pools.each{|pool| pool.dispose} if defined?(DataObjects::Pooling) - end + end def setup_time Timecop.freeze(Time.local(2011,8,1,0,0,0,0)) |