From 1fefcf8d83098f8fdafd8911b6608a3813f263e9 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Sun, 29 Sep 2013 19:23:04 +0200 Subject: [PATCH] Improved tests. --- test/unit/history_test.rb | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/test/unit/history_test.rb b/test/unit/history_test.rb index 35f8f0a41..84e42c823 100644 --- a/test/unit/history_test.rb +++ b/test/unit/history_test.rb @@ -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