Sha256: 586a4bd64b01da85d7cc3ef0f553074a659b79fb249a50a808866b1911b020ea
Contents?: true
Size: 676 Bytes
Versions: 3
Compression:
Stored size: 676 Bytes
Contents
require File.dirname(__FILE__) + '/../../spec_helper' describe Sprinkle::Installers::Runner do before do @package = mock(Sprinkle::Package, :name => 'package') end def create_runner(cmd) Sprinkle::Installers::Runner.new(@package, cmd) end describe 'when created' do it 'should accept a single cmd to run' do @installer = create_runner 'teste' @installer.cmd.should == 'teste' end end describe 'during execution' do before do @installer = create_runner 'teste' @install_commands = @installer.send :install_commands end it 'should run the given command for all specified packages' do @install_commands.should == 'teste' end end end
Version data entries
3 entries across 3 versions & 2 rubygems
Version | Path |
---|---|
dhill-sprinkle-0.3.3.1 | spec/sprinkle/installers/runner_spec.rb |
sprinkle-0.3.3 | spec/sprinkle/installers/runner_spec.rb |
sprinkle-0.3.2 | spec/sprinkle/installers/runner_spec.rb |