spec/sprinkle/installers/gem_spec.rb in sprinkle-0.7.6.2 vs spec/sprinkle/installers/gem_spec.rb in sprinkle-0.7.7
- old
+ new
@@ -84,9 +84,20 @@
@installer.send(:install_commands).should == "gem install #{@gem} --version '#{@version}'"
end
end
+ describe "with sudo" do
+ before do
+ @installer = create_gem @gem, nil, :sudo => true
+ end
+
+ it 'should call sudo' do
+ @installer.send(:install_commands).should == "sudo gem install #{@gem} --no-rdoc --no-ri"
+ end
+
+ end
+
describe 'with build flags' do
before do
@installer = create_gem @gem, nil, :build_flags => '--option=foo'
end