aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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