X-Git-Url: https://projects.mako.cc/source/selectricity-live/blobdiff_plain/25bfcc0f6b5344acb4039457f8492df7fbada7fc..5f51982916827b84d73bfa8f3a98a9ee1d48d3ce:/vendor/plugins/login_engine/test/mocks/time.rb diff --git a/vendor/plugins/login_engine/test/mocks/time.rb b/vendor/plugins/login_engine/test/mocks/time.rb deleted file mode 100755 index e253ada..0000000 --- a/vendor/plugins/login_engine/test/mocks/time.rb +++ /dev/null @@ -1,19 +0,0 @@ -require 'time' - -Time.class_eval { - if !respond_to? :now_old # somehow this is getting defined many times. - @@advance_by_days = 0 - cattr_accessor :advance_by_days - - class << Time - alias now_old now - def now - if Time.advance_by_days != 0 - return Time.at(now_old.to_i + Time.advance_by_days * 60 * 60 * 24 + 1) - else - now_old - end - end - end - end -}