Sha256: 994d3863647c3329bc69799389ac4b4e41f6bc1ffc6cc52f3808ff0714b4b908

Contents?: true

Size: 692 Bytes

Versions: 6

Compression:

Stored size: 692 Bytes

Contents

require File.expand_path("../../spec_helper", File.dirname(__FILE__))

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

6 entries across 6 versions & 1 rubygems

Version Path
sprinkle-0.4.2 spec/sprinkle/installers/runner_spec.rb
sprinkle-0.4.1 spec/sprinkle/installers/runner_spec.rb
sprinkle-0.4.0 spec/sprinkle/installers/runner_spec.rb
sprinkle-0.3.6 spec/sprinkle/installers/runner_spec.rb
sprinkle-0.3.5 spec/sprinkle/installers/runner_spec.rb
sprinkle-0.3.4 spec/sprinkle/installers/runner_spec.rb