From c7c70fdd5f212cd27feaad61e228e0bcb7dc52d3 Mon Sep 17 00:00:00 2001 From: Patrick J Cherry Date: Tue, 27 Nov 2012 16:09:40 +0000 Subject: Pop error message off log when a history save is flunked. --- test/tc_mauve_history.rb | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'test') 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 -- cgit v1.2.1