diff options
| author | Jesse Wolfe <jes5199@gmail.com> | 2010-04-30 15:47:15 -0700 |
|---|---|---|
| committer | test branch <puppet-dev@googlegroups.com> | 2010-02-17 06:50:53 -0800 |
| commit | 5683fd983b9a165ffbb8f08e67cfe903ec0e41b7 (patch) | |
| tree | b1a908be53502201b5ee0f1b37aae8e57a14bf37 /spec/unit/application/filebucket.rb | |
| parent | d038a1d3ddffdf1366c78fe31118e9f15c1c6ed1 (diff) | |
| download | puppet-5683fd983b9a165ffbb8f08e67cfe903ec0e41b7.tar.gz puppet-5683fd983b9a165ffbb8f08e67cfe903ec0e41b7.tar.xz puppet-5683fd983b9a165ffbb8f08e67cfe903ec0e41b7.zip | |
Feature #2276 Single Executable: Pass a commandline object to the application
Refactor so that the command line options only get parsed once
Signed-off-by: Jesse Wolfe <jes5199@gmail.com>
Diffstat (limited to 'spec/unit/application/filebucket.rb')
| -rw-r--r-- | spec/unit/application/filebucket.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/unit/application/filebucket.rb b/spec/unit/application/filebucket.rb index 68af45c40..58c7f7c75 100644 --- a/spec/unit/application/filebucket.rb +++ b/spec/unit/application/filebucket.rb @@ -152,7 +152,7 @@ describe Puppet::Application::Filebucket do end it "should use the first non-option parameter as the dispatch" do - Puppet::Util::CommandLine.stubs(:args).returns([:get]) + @filebucket.command_line.stubs(:args).returns(['get']) @filebucket.expects(:get) |
