Sha256: 5bb17a5a10f593b9662f52a8d120012cb36dca4af848f4c297aeec2babe63025

Contents?: true

Size: 848 Bytes

Versions: 21

Compression:

Stored size: 848 Bytes

Contents

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

describe Sprinkle::Installers::Rake do

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

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

  describe 'during installation' do

    it 'should invoke the rake executer for all specified tasks' do
      @installer = create_rake 'spec'
      @install_commands = @installer.send :install_commands
      @install_commands.should =~ /rake spec/
    end

    it 'should invoke the rake executer for all specified tasks' do
      @installer = create_rake 'spec', :rakefile => '/some/Rakefile'
      @install_commands = @installer.send :install_commands
      @install_commands.should == "rake -f /some/Rakefile spec"
    end

  end

end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
sprinkle-0.7.4 spec/sprinkle/installers/rake_spec.rb
sprinkle-0.7.3 spec/sprinkle/installers/rake_spec.rb
sprinkle-0.7.2 spec/sprinkle/installers/rake_spec.rb
sprinkle-0.7.1.1 spec/sprinkle/installers/rake_spec.rb
sprinkle-0.7.1 spec/sprinkle/installers/rake_spec.rb
sprinkle-0.7 spec/sprinkle/installers/rake_spec.rb
sprinkle-0.6.2 spec/sprinkle/installers/rake_spec.rb
sprinkle-0.6.1.1 spec/sprinkle/installers/rake_spec.rb
sprinkle-0.6.1 spec/sprinkle/installers/rake_spec.rb
sprinkle-0.6.0 spec/sprinkle/installers/rake_spec.rb
sprinkle-0.5.2 spec/sprinkle/installers/rake_spec.rb
sprinkle-0.5.1.1 spec/sprinkle/installers/rake_spec.rb
sprinkle-0.5.1 spec/sprinkle/installers/rake_spec.rb
sprinkle-0.5.0 spec/sprinkle/installers/rake_spec.rb
sprinkle-0.5.0.rc1 spec/sprinkle/installers/rake_spec.rb
sprinkle-0.4.2 spec/sprinkle/installers/rake_spec.rb
sprinkle-0.4.1 spec/sprinkle/installers/rake_spec.rb
sprinkle-0.4.0 spec/sprinkle/installers/rake_spec.rb
sprinkle-0.3.6 spec/sprinkle/installers/rake_spec.rb
sprinkle-0.3.5 spec/sprinkle/installers/rake_spec.rb