diff options
Diffstat (limited to 'spec/unit')
| -rwxr-xr-x | spec/unit/application.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/unit/application.rb b/spec/unit/application.rb index a5da191e3..e1f9362c4 100755 --- a/spec/unit/application.rb +++ b/spec/unit/application.rb @@ -60,7 +60,7 @@ describe Puppet::Application do it "should add Puppet.settings options to OptionParser" do Puppet.settings.stubs(:optparse_addargs).returns( [["--option","-o", "Funny Option"]]) - @app.opt_parser.expects(:on).with { |*arg,&block| arg == ["--option","-o", "Funny Option"] } + @app.opt_parser.expects(:on).with { |*arg| arg == ["--option","-o", "Funny Option"] } @app.parse_options end @@ -352,7 +352,7 @@ describe Puppet::Application do end it "should declare the option to OptionParser" do - @app.opt_parser.expects(:on).with { |*arg,&block| arg[0] == "--[no-]test3" } + @app.opt_parser.expects(:on).with { |*arg| arg[0] == "--[no-]test3" } @app.option("--[no-]test3","-t") do end @@ -414,4 +414,4 @@ describe Puppet::Application do @app.should respond_to(:get_command) end end -end
\ No newline at end of file +end |
