spec/sprinkle/installers/apt_spec.rb in crafterm-sprinkle-0.1.5 vs spec/sprinkle/installers/apt_spec.rb in crafterm-sprinkle-0.1.6

- old
+ new

@@ -20,14 +20,10 @@ it 'should accept an array of packages to install' do @installer = create_apt %w( gcc gdb g++ ) @installer.packages.should == ['gcc', 'gdb', 'g++'] end - end - - describe 'when created for dependencies only install' do - it 'should remove options from packages list' do @installer = create_apt 'ruby', :dependencies_only => true @installer.packages.should == [ 'ruby' ] end @@ -60,10 +56,10 @@ end describe 'during dependencies only installation' do before do - @installer = create_apt 'ruby', :dependencies_only => true + @installer = create_apt('ruby') { dependencies_only true } @install_commands = @installer.send :install_commands end it 'should invoke the apt installer with build-dep command for all specified packages' do @install_commands.should =~ /apt-get -qyu build-dep ruby/