From 23064bb601622f8a0efaf47c66a9fefec6e62f95 Mon Sep 17 00:00:00 2001 From: Luke Kanies Date: Wed, 2 Mar 2011 17:13:44 -0800 Subject: Adding a test for fix to #14 Signed-off-by: Luke Kanies --- spec/unit/application/interface_base_spec.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'spec/unit/application/interface_base_spec.rb') diff --git a/spec/unit/application/interface_base_spec.rb b/spec/unit/application/interface_base_spec.rb index 1717f4982..ba1e6abf5 100644 --- a/spec/unit/application/interface_base_spec.rb +++ b/spec/unit/application/interface_base_spec.rb @@ -37,7 +37,7 @@ describe Puppet::Application::InterfaceBase do describe "during setup" do before do - @app.command_line.stubs(:args).returns("find", "myname", "myarg") + @app.command_line.stubs(:args).returns(["find", "myname", "myarg"]) @app.stubs(:validate) end @@ -47,9 +47,9 @@ describe Puppet::Application::InterfaceBase do end it "should make sure arguments are an array" do - @app.command_line.stubs(:args).returns(["find", "myname"]) + @app.command_line.stubs(:args).returns(["find", "myname", "myarg"]) @app.setup - @app.arguments.should == ["myname"] + @app.arguments.should == ["myname", "myarg"] end it "should set the options on the interface" do -- cgit