diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2012-08-17 10:19:33 -0700 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2012-08-17 14:47:40 -0300 |
commit | d6dbd7fbbcb38c7d34a0928bde2bfc7ce21618f0 (patch) | |
tree | 4b92d7f77dfe6307dc95552a8a806edbb5f47ada /activerecord/test | |
parent | 25f65498c13e9a094eeaae1bd9e9dd19b6adfad4 (diff) | |
download | rails-d6dbd7fbbcb38c7d34a0928bde2bfc7ce21618f0.tar.gz rails-d6dbd7fbbcb38c7d34a0928bde2bfc7ce21618f0.tar.bz2 rails-d6dbd7fbbcb38c7d34a0928bde2bfc7ce21618f0.zip |
Merge pull request #7352 from aripollak/microsecond-timestamp
Fix occasional microsecond conversion inaccuracy
Conflicts:
activerecord/CHANGELOG.md
Diffstat (limited to 'activerecord/test')
-rw-r--r-- | activerecord/test/cases/base_test.rb | 1 | ||||
-rw-r--r-- | activerecord/test/fixtures/topics.yml | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/activerecord/test/cases/base_test.rb b/activerecord/test/cases/base_test.rb index 2fd0d59e17..fc33438569 100644 --- a/activerecord/test/cases/base_test.rb +++ b/activerecord/test/cases/base_test.rb @@ -205,6 +205,7 @@ class BasicsTest < ActiveRecord::TestCase assert_equal 11, Topic.find(1).written_on.sec assert_equal 223300, Topic.find(1).written_on.usec assert_equal 9900, Topic.find(2).written_on.usec + assert_equal 129346, Topic.find(3).written_on.usec end end diff --git a/activerecord/test/fixtures/topics.yml b/activerecord/test/fixtures/topics.yml index 93f48aedc4..2b042bd135 100644 --- a/activerecord/test/fixtures/topics.yml +++ b/activerecord/test/fixtures/topics.yml @@ -25,7 +25,7 @@ third: id: 3 title: The Third Topic of the day author_name: Carl - written_on: 2005-07-15t15:28:00.0099+01:00 + written_on: 2012-08-12t20:24:22.129346+00:00 content: I'm a troll approved: true replies_count: 1 |