Skip to content

Commit 7d35c57

Browse files
authored
Need to set explicitly set JSON attribute as such for testing(#1118)
1 parent d9c3c44 commit 7d35c57

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/cases/coerced_tests.rb

+5
Original file line numberDiff line numberDiff line change
@@ -2599,6 +2599,11 @@ def serializer
25992599
end
26002600
end
26012601

2602+
class StoreTest < ActiveRecord::TestCase
2603+
# Set the attribute as JSON type for the `StoreTest#saved changes tracking for accessors with json column` test.
2604+
Admin::User.attribute :json_options, ActiveRecord::Type::SQLServer::Json.new
2605+
end
2606+
26022607
# TODO: Need to uncoerce the 'SerializedAttributeTest' tests before releasing adapter for Rails 7.1
26032608
class SerializedAttributeTest < ActiveRecord::TestCase
26042609
coerce_all_tests!

0 commit comments

Comments
 (0)