This test ensures, among other things, that we get a log message.  If that
fails, we were trying to call a random method on nil; making that an assertion
means that we get a nice message rather than a failure that needs decoding.

Reviewed-By: Pieter van de Bruggen <[email protected]>
---
 spec/unit/application/face_base_spec.rb |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/spec/unit/application/face_base_spec.rb 
b/spec/unit/application/face_base_spec.rb
index 0a4a86b..bebc262 100755
--- a/spec/unit/application/face_base_spec.rb
+++ b/spec/unit/application/face_base_spec.rb
@@ -55,6 +55,7 @@ describe Puppet::Application::FaceBase do
     it "should stop if the first thing found is not an action" do
       app.command_line.stubs(:args).returns %w{banana count_args}
       expect { app.run }.to exit_with 1
+      @logs.first.should_not be_nil
       @logs.first.message.should =~ /has no 'banana' action/
     end
 
-- 
1.7.6

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Developers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-dev?hl=en.

Reply via email to