Sha256: e48d2809786a7425dd395005edd39526f938856cb9d5bd39ed116dcc7dd526ee

Contents?: true

Size: 1.62 KB

Versions: 25

Compression:

Stored size: 1.62 KB

Contents

require 'spec_helper'

describe "parallel", :realworld => true do
  it "installs", :ruby => "1.8" do
    gemfile <<-G
      source "https://rubygems.org"
      gem 'activesupport', '~> 3.2.13'
      gem 'faker', '~> 1.1.2'
    G

    bundle :install, :jobs => 4, :env => {"DEBUG" => "1"}
    expect(out).to match(/[1-3]: /)

    bundle "show activesupport"
    expect(out).to match(/activesupport/)

    bundle "show faker"
    expect(out).to match(/faker/)

    bundle "config jobs"
    expect(out).to match(/: "4"/)
  end

  it "installs even with circular dependency", :ruby => "1.9" do
    gemfile <<-G
      source 'https://rubygems.org'
      gem 'activesupport', '~> 3.2.13'
      gem 'mongoid_auto_increment', "0.1.1"
    G

    bundle :install, :jobs => 4, :env => {"DEBUG" => "1"}
    expect(out).to match(/[1-3]: /)

    bundle "show activesupport"
    expect(out).to match(/activesupport/)

    bundle "show mongoid_auto_increment"
    expect(out).to match(%r{gems/mongoid_auto_increment})

    bundle "config jobs"
    expect(out).to match(/: "4"/)
  end

  it "updates" do
    install_gemfile <<-G
      source "https://rubygems.org"
      gem 'activesupport', '3.2.12'
      gem 'faker', '~> 1.1.2'
    G

    gemfile <<-G
      source "https://rubygems.org"
      gem 'activesupport', '~> 3.2.12'
      gem 'faker', '~> 1.1.2'
    G

    bundle :update, :jobs => 4, :env => {"DEBUG" => "1"}
     expect(out).to match(/[1-3]: /)

    bundle "show activesupport"
    expect(out).to match(/activesupport-3\.2\.1[3-9]/)

    bundle "show faker"
    expect(out).to match(/faker/)

    bundle "config jobs"
    expect(out).to match(/: "4"/)
  end
end

Version data entries

25 entries across 25 versions & 2 rubygems

Version Path
bundler-1.7.4 spec/realworld/parallel_spec.rb
bundler-1.6.7 spec/realworld/parallel_spec.rb
bundler-1.7.3 spec/realworld/parallel_spec.rb
bundler-1.6.6 spec/realworld/parallel_spec.rb
bundler-1.7.2 spec/realworld/parallel_spec.rb
bundler-1.7.1 spec/realworld/parallel_spec.rb
bundler-1.7.1.pre.3 spec/realworld/parallel_spec.rb
bundler-1.7.1.pre.2 spec/realworld/parallel_spec.rb
bundler-1.7.1.pre spec/realworld/parallel_spec.rb
bundler-1.7.0 spec/realworld/parallel_spec.rb
bundler-1.6.5 spec/realworld/parallel_spec.rb
bundler-1.6.4 spec/realworld/parallel_spec.rb
bundler-prehistoric-1.6.2.2 spec/realworld/parallel_spec.rb
bundler-1.6.3 spec/realworld/parallel_spec.rb
bundler-prehistoric-1.6.2.1 spec/realworld/parallel_spec.rb
bundler-prehistoric-1.6.2 spec/realworld/parallel_spec.rb
bundler-1.6.2 spec/realworld/parallel_spec.rb
bundler-1.6.1 spec/realworld/parallel_spec.rb
bundler-1.6.0 spec/realworld/parallel_spec.rb
bundler-1.6.0.rc2 spec/realworld/parallel_spec.rb