aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/migration_test.rb
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2007-03-06 00:49:11 +0000
committerJeremy Kemper <jeremy@bitsweat.net>2007-03-06 00:49:11 +0000
commitd1b08f4a751f12fbe32ccf7a31cc905656a344ff (patch)
tree182fb1339aa9889878b9a378952bdf630f9f126e /activerecord/test/migration_test.rb
parente52c28a425192966379ecf4ae3b20f0b9442e9e2 (diff)
downloadrails-d1b08f4a751f12fbe32ccf7a31cc905656a344ff.tar.gz
rails-d1b08f4a751f12fbe32ccf7a31cc905656a344ff.tar.bz2
rails-d1b08f4a751f12fbe32ccf7a31cc905656a344ff.zip
Fix an edge case with dates during the Italian calendar reform! Hehe. Closes #7724.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6341 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord/test/migration_test.rb')
-rw-r--r--activerecord/test/migration_test.rb11
1 files changed, 9 insertions, 2 deletions
diff --git a/activerecord/test/migration_test.rb b/activerecord/test/migration_test.rb
index 56712284b2..3b0e310386 100644
--- a/activerecord/test/migration_test.rb
+++ b/activerecord/test/migration_test.rb
@@ -263,9 +263,16 @@ if ActiveRecord::Base.connection.supports_migrations?
Person.connection.add_column "people", "favorite_day", :date
Person.connection.add_column "people", "moment_of_truth", :datetime
Person.connection.add_column "people", "male", :boolean
- assert_nothing_raised { Person.create :first_name => 'bob', :last_name => 'bobsen', :bio => "I was born ....", :age => 18, :height => 1.78, :wealth => BigDecimal.new("12345678901234567890.0123456789"), :birthday => 18.years.ago, :favorite_day => 10.days.ago, :moment_of_truth => "1817-10-25 21:40:18", :male => true }
- bob = Person.find(:first)
+ assert_nothing_raised do
+ Person.create :first_name => 'bob', :last_name => 'bobsen',
+ :bio => "I was born ....", :age => 18, :height => 1.78,
+ :wealth => BigDecimal.new("12345678901234567890.0123456789"),
+ :birthday => 18.years.ago, :favorite_day => 10.days.ago,
+ :moment_of_truth => "1582-10-10 21:40:18", :male => true
+ end
+
+ bob = Person.find(:first)
assert_equal 'bob', bob.first_name
assert_equal 'bobsen', bob.last_name
assert_equal "I was born ....", bob.bio