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 ....
38 lines
826 B
Ruby
38 lines
826 B
Ruby
require "spec_helper"
|
|
|
|
describe "bundle install with deprecated features" do
|
|
before :each do
|
|
in_app_root
|
|
end
|
|
|
|
%w( only except disable_system_gems disable_rubygems
|
|
clear_sources bundle_path bin_path ).each do |deprecated|
|
|
|
|
it "reports that #{deprecated} is deprecated" do
|
|
gemfile <<-G
|
|
#{deprecated}
|
|
G
|
|
|
|
bundle :install
|
|
out.should =~ /'#{deprecated}' has been removed/
|
|
out.should =~ /See the README for more information/
|
|
end
|
|
|
|
end
|
|
|
|
|
|
%w( require_as vendored_at only except ).each do |deprecated|
|
|
|
|
it "reports that :#{deprecated} is deprecated" do
|
|
gemfile <<-G
|
|
gem "rack", :#{deprecated} => true
|
|
G
|
|
|
|
bundle :install
|
|
out.should =~ /Please replace :#{deprecated}|The :#{deprecated} option is no longer supported/
|
|
end
|
|
|
|
end
|
|
|
|
end
|