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:
parent
1e1fe3f7bb
commit
097e4afcba
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue