spec/install/gems/sudo_spec.rb in bundler-1.6.1 vs spec/install/gems/sudo_spec.rb in bundler-1.6.2
- old
+ new
@@ -123,6 +123,14 @@
expect(gem_home.join('bin/rackup')).to exist
should_be_installed "rack 1.0", :env => {'GEM_HOME' => gem_home.to_s, 'GEM_PATH' => nil}
end
end
+ describe "and root runs install" do
+ it "warns against that" do
+ gemfile %|source "file://#{gem_repo1}"|
+ bundle :install, :sudo => true
+ expect(out).to include("Don't run Bundler as root.")
+ end
+ end
+
end