Improved tests.

This commit is contained in:
Martin Edenhofer 2013-09-29 19:23:04 +02:00
parent 66ee4d2cc7
commit 1fefcf8d83

View file

@ -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