aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test
diff options
context:
space:
mode:
authorMichael Koziarski <michael@koziarski.com>2006-03-18 04:38:49 +0000
committerMichael Koziarski <michael@koziarski.com>2006-03-18 04:38:49 +0000
commit7fdab4446a91824b16ebf52d35dc9c6854276aac (patch)
tree5becfdd6e4568342c1522affcae8bbb19995ddad /activerecord/test
parent504ab568f8941b4ecec5026c06743920bcb05c37 (diff)
downloadrails-7fdab4446a91824b16ebf52d35dc9c6854276aac.tar.gz
rails-7fdab4446a91824b16ebf52d35dc9c6854276aac.tar.bz2
rails-7fdab4446a91824b16ebf52d35dc9c6854276aac.zip
Remove broken attempts at handling columns with a a default of 'now()' in the postgresql adapter. Closes #2257
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3913 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord/test')
-rwxr-xr-xactiverecord/test/base_test.rb11
1 files changed, 0 insertions, 11 deletions
diff --git a/activerecord/test/base_test.rb b/activerecord/test/base_test.rb
index 58dd133aeb..3592c09e23 100755
--- a/activerecord/test/base_test.rb
+++ b/activerecord/test/base_test.rb
@@ -809,17 +809,6 @@ class BasicsTest < Test::Unit::TestCase
def test_default
default = Default.new
- # CURRENT_TIMESTAMP and NOW() timestamps
- time_format = "%m/%d/%Y %H:%M"
- now = Time.now.strftime(time_format)
- assert_equal now, default.modified_time.strftime(time_format)
- assert_equal now, default.modified_time_function.strftime(time_format)
-
- # CURRENT_DATE and NOW() dates
- today = Date.today
- assert_equal today, default.modified_date
- assert_equal today, default.modified_date_function
-
# fixed dates / times
assert_equal Date.new(2004, 1, 1), default.fixed_date
assert_equal Time.local(2004, 1,1,0,0,0,0), default.fixed_time