Sha256: 2b8716f0d58414e1874c6973e7be9f817f60deae00701130b3c44552755496b6

Contents?: true

Size: 1.39 KB

Versions: 14

Compression:

Stored size: 1.39 KB

Contents

require 'spec_helper'

describe 'bundle install with gem sources' do
  describe 'when gems include post install messages' do
    it "should display the post-install messages after installing" do
      gemfile <<-G
        source "file://#{gem_repo1}"
        gem 'rack'
        gem 'thin'
        gem 'rack-obama'
      G

      bundle :install
      expect(out).to include("Post-install message from rack:")
      expect(out).to include("Rack's post install message")
      expect(out).to include("Post-install message from thin:")
      expect(out).to include("Thin's post install message")
      expect(out).to include("Post-install message from rack-obama:")
      expect(out).to include("Rack-obama's post install message")
    end
  end

  describe 'when gems do not include post install messages' do
    it "should not display any post-install messages" do
      gemfile <<-G
        source "file://#{gem_repo1}"
        gem "activesupport"
      G

      bundle :install
      expect(out).not_to include("Post-install message")
    end
  end

  describe "when a dependecy includes a post install message" do
    it "should display the post install message" do
      gemfile <<-G
        source "file://#{gem_repo1}"
        gem 'rack_middleware'
      G

      bundle :install
      expect(out).to include("Post-install message from rack:")
      expect(out).to include("Rack's post install message")
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
bundler-1.3.5 spec/install/gems/post_install_spec.rb
bundler-1.3.4 spec/install/gems/post_install_spec.rb
bundler-1.3.3 spec/install/gems/post_install_spec.rb
bundler-1.3.2 spec/install/gems/post_install_spec.rb
bundler-1.3.1 spec/install/gems/post_install_spec.rb
bundler-1.3.0 spec/install/gems/post_install_spec.rb
bundler-1.3.0.pre.8 spec/install/gems/post_install_spec.rb
bundler-1.3.0.pre.7 spec/install/gems/post_install_spec.rb
bundler-1.3.0.pre.6 spec/install/gems/post_install_spec.rb
bundler-1.3.0.pre.5 spec/install/gems/post_install_spec.rb
bundler-1.3.0.pre.4 spec/install/gems/post_install_spec.rb
bundler-1.3.0.pre.3 spec/install/gems/post_install_spec.rb
bundler-1.3.0.pre.2 spec/install/gems/post_install_spec.rb
bundler-1.3.0.pre spec/install/gems/post_install_spec.rb