Skip to content

Commit

Permalink
add test for nested targeted filtering
Browse files Browse the repository at this point in the history
  • Loading branch information
mpapis committed Oct 17, 2014
1 parent c063fc9 commit 34b48c6
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/command-designer/dsl_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,14 @@
subject.command("true").must_equal("env true")
end

it "handles filtered targeted commands in context" do
subject.filter(nil, {:target => "true"}) do |command| "env #{command}" end
subject.in_context({:a=>3}) do
subject.command("false").must_equal("false")
subject.command("true").must_equal("env true")
end
end

end #"top level"

end

0 comments on commit 34b48c6

Please sign in to comment.