Improved tests.
This commit is contained in:
parent
66ee4d2cc7
commit
1fefcf8d83
1 changed files with 8 additions and 0 deletions
|
@ -216,6 +216,13 @@ class HistoryTest < ActiveSupport::TestCase
|
|||
:value_from => 'somebody@example.com',
|
||||
:value_to => 'master@example.com',
|
||||
},
|
||||
{
|
||||
:history_object => 'User',
|
||||
:history_type => 'updated',
|
||||
:history_attribute => 'active',
|
||||
:value_from => 'true',
|
||||
:value_to => 'false',
|
||||
},
|
||||
],
|
||||
},
|
||||
|
||||
|
@ -233,6 +240,7 @@ class HistoryTest < ActiveSupport::TestCase
|
|||
|
||||
# update user
|
||||
if test[:user_update][:user]
|
||||
test[:user_update][:user][:active] = false
|
||||
user.update_attributes( test[:user_update][:user] )
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue