Sha256: 5ff6ecd1ff5204750a9c1dd345d2aad7477279958c7e2143c5bf71e7bbe331db

Contents?: true

Size: 832 Bytes

Versions: 43

Compression:

Stored size: 832 Bytes

Contents

require File.dirname(__FILE__) + '/../../spec_helper'

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

43 entries across 43 versions & 11 rubygems

Version Path
crafterm-sprinkle-0.2.0 spec/sprinkle/installers/rake_spec.rb
crafterm-sprinkle-0.2.1 spec/sprinkle/installers/rake_spec.rb
crafterm-sprinkle-0.2.2 spec/sprinkle/installers/rake_spec.rb
crafterm-sprinkle-0.2.3 spec/sprinkle/installers/rake_spec.rb
crafterm-sprinkle-0.2.4 spec/sprinkle/installers/rake_spec.rb
crafterm-sprinkle-0.2.5 spec/sprinkle/installers/rake_spec.rb
crafterm-sprinkle-0.2.6 spec/sprinkle/installers/rake_spec.rb
jemmyw-sprinkle-0.2.3 spec/sprinkle/installers/rake_spec.rb
jemmyw-sprinkle-0.2.4 spec/sprinkle/installers/rake_spec.rb
jsierles-sprinkle-0.1.9 spec/sprinkle/installers/rake_spec.rb
justsee-sprinkle-0.2.4 spec/sprinkle/installers/rake_spec.rb
lachlan-sprinkle-0.0.1 spec/sprinkle/installers/rake_spec.rb
lachlan-sprinkle-0.0.10 spec/sprinkle/installers/rake_spec.rb
lachlan-sprinkle-0.0.11 spec/sprinkle/installers/rake_spec.rb
lachlan-sprinkle-0.0.13 spec/sprinkle/installers/rake_spec.rb
lachlan-sprinkle-0.0.14 spec/sprinkle/installers/rake_spec.rb
lachlan-sprinkle-0.0.15 spec/sprinkle/installers/rake_spec.rb
lachlan-sprinkle-0.0.16 spec/sprinkle/installers/rake_spec.rb
lachlan-sprinkle-0.0.2 spec/sprinkle/installers/rake_spec.rb
lachlan-sprinkle-0.0.3 spec/sprinkle/installers/rake_spec.rb