Sha256: 143db81a8629738101310878fc49e8466243d0ded0e4616b15c8d5c7472ca317

Contents?: true

Size: 826 Bytes

Versions: 24

Compression:

Stored size: 826 Bytes

Contents

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

Version data entries

24 entries across 24 versions & 4 rubygems

Version Path
bundler-1.0.22 spec/install/deprecated_spec.rb
mpapis-bundler-1.0.21.1 spec/install/deprecated_spec.rb
mpapis-bundler-1.0.21 spec/install/deprecated_spec.rb
bundler-maglev--1.0.21 spec/install/deprecated_spec.rb
bundler-1.0.21 spec/install/deprecated_spec.rb
bundler-1.0.21.rc spec/install/deprecated_spec.rb
bundler-1.0.20 spec/install/deprecated_spec.rb
bundler-1.0.20.rc spec/install/deprecated_spec.rb
bundler-1.0.19.rc spec/install/deprecated_spec.rb
bundler-1.0.18 spec/install/deprecated_spec.rb
bundler-1.1.pre.8 spec/install/deprecated_spec.rb
bundler-1.0.17 spec/install/deprecated_spec.rb
bundler-1.1.pre.7 spec/install/deprecated_spec.rb
bundler-1.1.pre.5 spec/install/deprecated_spec.rb
bundler-1.0.15 spec/install/deprecated_spec.rb
bundler-1.0.14 spec/install/deprecated_spec.rb
bundler-1.1.pre.4 spec/install/deprecated_spec.rb
bundler-1.0.13 spec/install/deprecated_spec.rb
bundler-1.1.pre.3 spec/install/deprecated_spec.rb
bundler-1.1.pre.2 spec/install/deprecated_spec.rb