Sha256: 8108a902add2ef14265c053781424e4d1d6209418443c5028defebe61dd07779

Contents?: true

Size: 586 Bytes

Versions: 24

Compression:

Stored size: 586 Bytes

Contents

#! /usr/bin/env ruby
require '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", nil)
    request.instance = runner = Puppet::Run.new
    Puppet::Run::Local.new.save(request).should == runner
  end
end

Version data entries

24 entries across 24 versions & 2 rubygems

Version Path
puppet-3.3.0 spec/unit/indirector/run/local_spec.rb
puppet-3.3.0.rc3 spec/unit/indirector/run/local_spec.rb
puppet-3.3.0.rc2 spec/unit/indirector/run/local_spec.rb
puppet-3.2.4 spec/unit/indirector/run/local_spec.rb
puppet-3.2.3 spec/unit/indirector/run/local_spec.rb
puppet-3.2.3.rc1 spec/unit/indirector/run/local_spec.rb
puppet-3.2.2 spec/unit/indirector/run/local_spec.rb
puppet-3.2.1 spec/unit/indirector/run/local_spec.rb
puppet-3.2.1.rc1 spec/unit/indirector/run/local_spec.rb
puppet-3.2.0.rc2 spec/unit/indirector/run/local_spec.rb
librarian-puppet-0.9.9 vendor/gems/ruby/1.9.1/gems/puppet-3.1.0/spec/unit/indirector/run/local_spec.rb
puppet-3.2.0.rc1 spec/unit/indirector/run/local_spec.rb
puppet-3.1.1 spec/unit/indirector/run/local_spec.rb
librarian-puppet-0.9.8 vendor/gems/ruby/1.9.1/gems/puppet-3.1.0/spec/unit/indirector/run/local_spec.rb
puppet-3.1.0 spec/unit/indirector/run/local_spec.rb
puppet-3.1.0.rc2 spec/unit/indirector/run/local_spec.rb
puppet-3.1.0.rc1 spec/unit/indirector/run/local_spec.rb
puppet-3.0.2 spec/unit/indirector/run/local_spec.rb
puppet-3.0.2.rc3 spec/unit/indirector/run/local_spec.rb
puppet-3.0.2.rc2 spec/unit/indirector/run/local_spec.rb