diff options
Diffstat (limited to 'spec/unit/faces/indirector_spec.rb')
-rwxr-xr-x | spec/unit/faces/indirector_spec.rb | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/spec/unit/faces/indirector_spec.rb b/spec/unit/faces/indirector_spec.rb index 218694bd9..3ed64bc01 100755 --- a/spec/unit/faces/indirector_spec.rb +++ b/spec/unit/faces/indirector_spec.rb @@ -34,10 +34,14 @@ describe Puppet::Faces::Indirector do Puppet::Faces::Indirector.should be_action(method) end - it "should call the indirection method when the '#{method}' action is invoked" do - subject.indirection.expects(method).with(:test, "myargs") + it "should call the indirection method with options when the '#{method}' action is invoked" do + subject.indirection.expects(method).with(:test, "myargs", {}) subject.send(method, :test, "myargs") end + it "should forward passed options" do + subject.indirection.expects(method).with(:test, "action", {'one'=>'1'}) + subject.send(method, :test, 'action', {'one'=>'1'}) + end end it "should be able to override its indirection name" do |