Sha256: 75d8cb5ef2e7fd95be9feaa3c2d53f4e40a880cfb3353b850023360f0faf6538

Contents?: true

Size: 538 Bytes

Versions: 3

Compression:

Stored size: 538 Bytes

Contents

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

describe Sprinkle::Installers::Noop do

  before do
    @package = mock(Sprinkle::Package, :name => 'spec')
  end

  def create_noop(names, options = {}, &block)
    Sprinkle::Installers::Noop.new(@package, options, &block)
  end

  describe 'during installation' do

    it 'should always be empty' do
      @installer = create_noop 'spec'
      @install_commands = @installer.send :install_commands
      @install_commands.should == 'echo noop'
    end

  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
sprinkle-0.3.6 spec/sprinkle/installers/noop_spec.rb
sprinkle-0.3.5 spec/sprinkle/installers/noop_spec.rb
sprinkle-0.3.4 spec/sprinkle/installers/noop_spec.rb