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