spec/sprinkle/installers/source_spec.rb in sprinkle-0.7.5 vs spec/sprinkle/installers/source_spec.rb in sprinkle-0.7.6

- old
+ new

@@ -200,9 +200,21 @@ @installer.send(:build_commands).first.should =~ /super-foo/ @installer.send(:install_commands).first.should =~ /super-foo/ end end + describe 'with a custom dir definition' do + before do + @installer.options[:custom_dir] = 'super-foo' + end + + it 'should install the source from the custom archive' do + @installer.send(:configure_commands).first.should =~ /super-foo/ + @installer.send(:build_commands).first.should =~ /super-foo/ + @installer.send(:install_commands).first.should =~ /super-foo/ + end + + end describe 'with default configure, build, and install commands' do before do @installer = create_source @source