Skip to content

Commit 35651d3

Browse files
authored
Rails 6.1: Add Active Record Marshal forward compatibility tests (#893)
* add Active Record Marshal forward compatibility tests * add changelog item
1 parent 81ec762 commit 35651d3

File tree

4 files changed

+12
-0
lines changed

4 files changed

+12
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
- [#891](https://github.com/rails-sqlserver/activerecord-sqlserver-adapter/pull/891) Add support for if_not_exists to indexes
1616
- [#892](https://github.com/rails-sqlserver/activerecord-sqlserver-adapter/pull/892) Add support for if_exists on remove_column
1717
- [#883](https://github.com/rails-sqlserver/activerecord-sqlserver-adapter/pull/885) Fix quoting of ActiveRecord::Relation::QueryAttribute and ActiveModel::Attributes
18+
- [#893](https://github.com/rails-sqlserver/activerecord-sqlserver-adapter/pull/893) Add Active Record Marshal forward compatibility tests
1819

1920
#### Changed
2021

test/cases/coerced_tests.rb

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1656,3 +1656,14 @@ def test_annotate_is_sanitized_coerced
16561656
end
16571657
end
16581658
end
1659+
1660+
class MarshalSerializationTest < ActiveRecord::TestCase
1661+
private
1662+
1663+
def marshal_fixture_path(file_name)
1664+
File.expand_path(
1665+
"support/marshal_compatibility_fixtures/#{ActiveRecord::Base.connection.adapter_name}/#{file_name}.dump",
1666+
ARTest::SQLServer.test_root_sqlserver
1667+
)
1668+
end
1669+
end
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)