Skip to content

Commit

Permalink
Add test for correct passing of parameters with spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
rleber committed Dec 13, 2010
1 parent 5973b07 commit dc21f68
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions spec/wrapper_spec.rb
Expand Up @@ -307,6 +307,12 @@ def should_equal_trimmed(res, expected)
capture(:stdout) { Wrapping.start(["reload", "foo"]) }
end

it "invokes the parent task with parameters including spaces" do
Wrapping.should_receive(:forward).with("reload", "foo bar").once
Wrapping.should_not_receive(:wrap)
capture(:stdout) { Wrapping.start(["reload", "foo bar"]) }
end

it "invokes the parent task with options" do
Wrapping.should_receive(:forward).with("reload", "--foo=bar").once
Wrapping.should_not_receive(:wrap)
Expand Down

0 comments on commit dc21f68

Please sign in to comment.