summaryrefslogtreecommitdiffstats
path: root/spec
diff options
context:
space:
mode:
authorLuke Kanies <luke@puppetlabs.com>2011-03-02 17:13:44 -0800
committerLuke Kanies <luke@puppetlabs.com>2011-03-02 17:13:44 -0800
commit23064bb601622f8a0efaf47c66a9fefec6e62f95 (patch)
treee06e2c782ad77ee70d631bcf8398546b0a8c7c27 /spec
parent353b9145e465a002f1b66f2a616cce3a8647d370 (diff)
downloadpuppet-23064bb601622f8a0efaf47c66a9fefec6e62f95.tar.gz
puppet-23064bb601622f8a0efaf47c66a9fefec6e62f95.tar.xz
puppet-23064bb601622f8a0efaf47c66a9fefec6e62f95.zip
Adding a test for fix to #14
Signed-off-by: Luke Kanies <luke@puppetlabs.com>
Diffstat (limited to 'spec')
-rw-r--r--spec/unit/application/interface_base_spec.rb6
1 files changed, 3 insertions, 3 deletions
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