1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Add an assertion to the regression test

Co-authored-by: Ryuta Kamizono <kamipo@gmail.com>
This commit is contained in:
Dylan Thacker-Smith 2021-03-23 20:28:59 -07:00 committed by Dylan Thacker-Smith
parent 1e1fe3f7bb
commit 097e4afcba

View file

@ -65,9 +65,9 @@ class FilterAttributesTest < ActiveRecord::TestCase
test "proc filter_attributes don't prevent marshal dump" do
ActiveRecord::Base.filter_attributes = [ lambda { |key, value| value.reverse! if key == "name" } ]
account = Admin::Account.new(name: "37signals")
account = Admin::Account.new(id: 123, name: "37signals")
account.inspect
Marshal.dump(account)
assert_equal account, Marshal.load(Marshal.dump(account))
end
test "filter_attributes could be overwritten by models" do