Sha256: 34b92048aab472ae5eb96e351ee4ab77e3cee3ed59f65c57f922785a2e2360a5
Contents?: true
Size: 616 Bytes
Versions: 19
Compression:
Stored size: 616 Bytes
Contents
#!/usr/bin/env ruby require File.dirname(__FILE__) + '/../../../spec_helper' require 'puppet/indirector/run/local' describe Puppet::Run::Local do it "should be a sublcass of Puppet::Indirector::Code" do Puppet::Run::Local.superclass.should equal(Puppet::Indirector::Code) end it "should call runner.run on save and return the runner" do runner = Puppet::Run.new runner.stubs(:run).returns(runner) request = Puppet::Indirector::Request.new(:indirection, :save, "anything") request.instance = runner = Puppet::Run.new Puppet::Run::Local.new.save(request).should == runner end end
Version data entries
19 entries across 19 versions & 1 rubygems