Sha256: df1228758ac79f79b6b388048a6521c90109eb1171cfbd740bb19dc4a74f8749

Contents?: true

Size: 658 Bytes

Versions: 68

Compression:

Stored size: 658 Bytes

Contents

#! /usr/bin/env ruby
require 'spec_helper'

require 'puppet/indirector/run/local'

describe Puppet::Run::Local do
  it "should be a subclass 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
    Puppet::Status.indirection.stubs(:find).returns Puppet::Status.new

    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

68 entries across 68 versions & 1 rubygems

Version Path
puppet-3.8.7 spec/unit/indirector/run/local_spec.rb
puppet-3.8.7-x86-mingw32 spec/unit/indirector/run/local_spec.rb
puppet-3.8.7-x64-mingw32 spec/unit/indirector/run/local_spec.rb
puppet-3.8.6 spec/unit/indirector/run/local_spec.rb
puppet-3.8.6-x86-mingw32 spec/unit/indirector/run/local_spec.rb
puppet-3.8.6-x64-mingw32 spec/unit/indirector/run/local_spec.rb
puppet-3.8.5 spec/unit/indirector/run/local_spec.rb
puppet-3.8.5-x86-mingw32 spec/unit/indirector/run/local_spec.rb
puppet-3.8.5-x64-mingw32 spec/unit/indirector/run/local_spec.rb
puppet-3.8.4 spec/unit/indirector/run/local_spec.rb
puppet-3.8.4-x86-mingw32 spec/unit/indirector/run/local_spec.rb
puppet-3.8.4-x64-mingw32 spec/unit/indirector/run/local_spec.rb
puppet-3.8.3 spec/unit/indirector/run/local_spec.rb
puppet-3.8.3-x86-mingw32 spec/unit/indirector/run/local_spec.rb
puppet-3.8.3-x64-mingw32 spec/unit/indirector/run/local_spec.rb
puppet-3.8.2 spec/unit/indirector/run/local_spec.rb
puppet-3.8.2-x86-mingw32 spec/unit/indirector/run/local_spec.rb
puppet-3.8.2-x64-mingw32 spec/unit/indirector/run/local_spec.rb
puppet-3.8.1 spec/unit/indirector/run/local_spec.rb
puppet-3.8.1-x86-mingw32 spec/unit/indirector/run/local_spec.rb