instiki/vendor/plugins/bundler/gems/bundler-1.0.18/spec/install/deprecated_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

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