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