instiki/vendor/plugins/bundler/gems/bundler-1.0.18/spec/install/invalid_spec.rb
Jacques Distler 1e352e28a1 Make Sanitizer::safe_xhtml_sanitize use Nokogiri
Also, update Bundler to 1.0.18.
2011-08-19 19:32:53 -05:00

35 lines
662 B
Ruby

require "spec_helper"
describe "bundle install with deprecated features" do
before :each do
in_app_root
end
it "reports that lib is an invalid option" do
gemfile <<-G
gem "rack", :lib => "rack"
G
bundle :install
out.should =~ /You passed :lib as an option for gem 'rack', but it is invalid/
end
end
describe "bundle install to a dead symlink" do
before do
in_app_root do
`ln -s /tmp/idontexist bundle`
end
end
it "reports the symlink is dead" do
gemfile <<-G
source "file://#{gem_repo1}"
gem "rack"
G
bundle "install --path bundle"
out.should =~ /invalid symlink/
end
end