aboutsummaryrefslogtreecommitdiff
path: root/test/tc_mauve_history.rb
diff options
context:
space:
mode:
authorPatrick J Cherry <patrick@bytemark.co.uk>2012-11-27 16:09:40 +0000
committerPatrick J Cherry <patrick@bytemark.co.uk>2012-11-27 16:09:40 +0000
commitc7c70fdd5f212cd27feaad61e228e0bcb7dc52d3 (patch)
treea3a90da5f87d936b739888cd0762e3b7017ecbdc /test/tc_mauve_history.rb
parentac4f4caccce636711ab8b1c5bb8e08a1fd102852 (diff)
Pop error message off log when a history save is flunked.
Diffstat (limited to 'test/tc_mauve_history.rb')
-rw-r--r--test/tc_mauve_history.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/tc_mauve_history.rb b/test/tc_mauve_history.rb
index 6b46b1d..e84a2a9 100644
--- a/test/tc_mauve_history.rb
+++ b/test/tc_mauve_history.rb
@@ -31,6 +31,11 @@ class TcMauveHistory < Mauve::UnitTest
h = History.new(:alerts => [], :type => nil, :event => "Hello")
assert_raise(DataMapper::SaveFailureError, "History saved with blank type -- validation not working"){h.save}
+ #
+ # pop off the error message
+ #
+ logger_pop
+
assert_equal([:type], h.errors.keys, "Just the type field should be invalid")
end