Sha256: 2122b59aafb07cdb50b8b57eecc0962ebf9971191b7bfbb7ef7a4ecbfb0edfcf

Contents?: true

Size: 1.19 KB

Versions: 6

Compression:

Stored size: 1.19 KB

Contents

require "spec_helper"

describe "Bundler without flag" do
  it "passes --without flag to Bundler on install" do
    build_gems %w(pancake orange_juice waffle coffee sausage soda)

    build_gemfile <<-Gemfile
      source "https://rubygems.org"

      gem "pancake"
      gem "rake", "~> 10.5", :platform => :ruby_18

      group :drinks do
        gem "orange_juice"
      end

      gem "appraisal", :path => #{PROJECT_ROOT.inspect}
    Gemfile

    build_appraisal_file <<-Appraisals
      appraise "breakfast" do
        gem "waffle"

        group :drinks do
          gem "coffee"
        end
      end

      appraise "lunch" do
        gem "sausage"

        group :drinks do
          gem "soda"
        end
      end
    Appraisals

    run "bundle install --local"
    output = run "appraisal install --without drinks"

    expect(output).to include("Bundle complete")
    expect(output).to include("Gems in the group drinks were not installed.")
    expect(output).not_to include("orange_juice")
    expect(output).not_to include("coffee")
    expect(output).not_to include("soda")

    output = run "appraisal install"

    expect(output).to include("The Gemfile's dependencies are satisfied")
  end
end

Version data entries

6 entries across 6 versions & 3 rubygems

Version Path
appraisal-2.4.1 spec/acceptance/bundle_without_spec.rb
appraisal-2.4.0 spec/acceptance/bundle_without_spec.rb
appraisal-2.3.0 spec/acceptance/bundle_without_spec.rb
honeybadger-4.5.3 vendor/bundle/ruby/2.6.0/gems/appraisal-2.2.0/spec/acceptance/bundle_without_spec.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/appraisal-2.2.0/spec/acceptance/bundle_without_spec.rb
appraisal-2.2.0 spec/acceptance/bundle_without_spec.rb