Sha256: 372b802628b69ad96579d42339e8aec5229c1e160157f9cd9f7a581659b2dd1d

Contents?: true

Size: 1.36 KB

Versions: 29

Compression:

Stored size: 1.36 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
      out.should include("Post-install message from rack:")
      out.should include("Rack's post install message")
      out.should include("Post-install message from thin:")
      out.should include("Thin's post install message")
      out.should include("Post-install message from rack-obama:")
      out.should 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
      out.should_not 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
      out.should include("Post-install message from rack:")
      out.should include("Rack's post install message")
    end
  end
end

Version data entries

29 entries across 29 versions & 2 rubygems

Version Path
bundler-1.2.5 spec/install/gems/post_install_spec.rb
bundler-1.2.4 spec/install/gems/post_install_spec.rb
bundler-1.2.3 spec/install/gems/post_install_spec.rb
bundler-1.2.2 spec/install/gems/post_install_spec.rb
bundler-1.2.1 spec/install/gems/post_install_spec.rb
bundler-1.2.0 spec/install/gems/post_install_spec.rb
bundler-1.2.0.rc.2 spec/install/gems/post_install_spec.rb
bundler-1.2.0.rc spec/install/gems/post_install_spec.rb
bundler-1.1.5 spec/install/gems/post_install_spec.rb
bundler-1.2.0.pre.1 spec/install/gems/post_install_spec.rb
bundler-1.1.4 spec/install/gems/post_install_spec.rb
rkh-bundler-1.2.0.pre spec/install/gems/post_install_spec.rb
bundler-1.2.0.pre spec/install/gems/post_install_spec.rb
bundler-1.1.3 spec/install/gems/post_install_spec.rb
bundler-1.1.2 spec/install/gems/post_install_spec.rb
bundler-1.1.1 spec/install/gems/post_install_spec.rb
bundler-1.1.0 spec/install/gems/post_install_spec.rb
bundler-1.1.rc.8 spec/install/gems/post_install_spec.rb
bundler-1.1.rc.7 spec/install/gems/post_install_spec.rb
bundler-1.1.rc.6 spec/install/gems/post_install_spec.rb