9e909d5be3
Update Bundler to 1.0.15. Update Rails to 2.3.12. Update rails_xss plugin. The latter two were the source of a considerable amount of grief, as rails_xss is now MUCH stricter about what string methods can be used. Also made it possible to use rake 0.9.x with Instiki. But you probably REALLY want to use ruby bundle exec rake ... instead of just saying rake ....
35 lines
662 B
Ruby
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 |