aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test
diff options
context:
space:
mode:
authorSean Griffin <sean@seantheprogrammer.com>2015-09-24 15:27:59 -0600
committerSean Griffin <sean@seantheprogrammer.com>2015-09-24 15:27:59 -0600
commitbff28bab29d4a3b950f75493fc1b1ed99d63426b (patch)
treeee40230a1d361ca13825e53b8af63526a64177d0 /activerecord/test
parent20b177b78ef5d21c8cc255f0376f6b2e948de234 (diff)
downloadrails-bff28bab29d4a3b950f75493fc1b1ed99d63426b.tar.gz
rails-bff28bab29d4a3b950f75493fc1b1ed99d63426b.tar.bz2
rails-bff28bab29d4a3b950f75493fc1b1ed99d63426b.zip
Don't assert fractional seconds can be applied on unsupported adapters
This was passing prior to 20b177b78ef5d21c8cc255f0376f6b2e948de234, because we were not properly applying our contract that `model.attr == model.tap(&:save).reload.attr` for this case. Now that that has been resolved, this test is invalid on some adapters
Diffstat (limited to 'activerecord/test')
-rw-r--r--activerecord/test/cases/dirty_test.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/activerecord/test/cases/dirty_test.rb b/activerecord/test/cases/dirty_test.rb
index 9d3c0e3900..cd1967c373 100644
--- a/activerecord/test/cases/dirty_test.rb
+++ b/activerecord/test/cases/dirty_test.rb
@@ -592,6 +592,7 @@ class DirtyTest < ActiveRecord::TestCase
end
def test_datetime_attribute_can_be_updated_with_fractional_seconds
+ skip "Fractional seconds are not supported" unless subsecond_precision_supported?
in_time_zone 'Paris' do
target = Class.new(ActiveRecord::Base)
target.table_name = 'topics'