summaryrefslogtreecommitdiffstats
path: root/spec/unit/application.rb
diff options
context:
space:
mode:
authorLuke Kanies <luke@madstop.com>2009-02-18 21:38:52 -0600
committerLuke Kanies <luke@madstop.com>2009-02-18 21:38:52 -0600
commitc854c593777f31de155f6c4dbd1292dff2f936d5 (patch)
tree230170597ac34db7e34bbb68d62a79be92b8d1e3 /spec/unit/application.rb
parent0f43fd6c894dd2be7f08209f28caf34be768f238 (diff)
downloadpuppet-c854c593777f31de155f6c4dbd1292dff2f936d5.tar.gz
puppet-c854c593777f31de155f6c4dbd1292dff2f936d5.tar.xz
puppet-c854c593777f31de155f6c4dbd1292dff2f936d5.zip
Fixing a syntactically invalid application test
Signed-off-by: Luke Kanies <luke@madstop.com>
Diffstat (limited to 'spec/unit/application.rb')
-rwxr-xr-xspec/unit/application.rb6
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