On 10/20/2011 12:47 AM, mtaylor(a)redhat.com wrote:
From: Martyn Taylor<mtaylor(a)redhat.com>
---
spec/command/config_parser_spec.rb | 12 +++++++++---
1 files changed, 9 insertions(+), 3 deletions(-)
diff --git a/spec/command/config_parser_spec.rb b/spec/command/config_parser_spec.rb
index 8cb3c7c..359dd5d 100644
--- a/spec/command/config_parser_spec.rb
+++ b/spec/command/config_parser_spec.rb
@@ -18,9 +18,15 @@ module Aeolus
module CLI
describe ConfigParser do
it "should parse the specified command" do
- config_parser = ConfigParser.new(%w(list --images))
- config_parser.process
- config_parser.command.should == 'list'
+ VCR.use_cassette('command/list_command/list_all_images') do
+ begin
+ config_parser = ConfigParser.new(%w(list --images))
+ config_parser.process
+ rescue SystemExit => e
+ e.status.should == 0
+ end
+ config_parser.command.should == 'list'
+ end
end
it "should exit gracefully when a required subcommand is not provided"
do
ACK
--
No trees were killed to send this message, but a large number of
electrons were terribly inconvenienced.