Updated the system to Rails 1.2.
[selectricity-live] / 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 (executable)
index e253ada..0000000
+++ /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
-}

Benjamin Mako Hill || Want to submit a patch?