Sha256: 85059deb12d748407db4b7a2157e3df356497d145512dc63787fc89ee39f8ea6

Contents?: true

Size: 686 Bytes

Versions: 14

Compression:

Stored size: 686 Bytes

Contents

require "spec_helper"

describe "bundle lock with git gems" do
  before :each do
    build_git "foo"

    install_gemfile <<-G
      gem 'foo', :git => "#{lib_path('foo-1.0')}"
    G
  end

  it "doesn't break right after running lock" do
    should_be_installed "foo 1.0.0"
  end

  it "locks a git source to the current ref" do
    update_git "foo"
    bundle :install

    run <<-RUBY
      require 'foo'
      puts "WIN" unless defined?(FOO_PREV_REF)
    RUBY

    expect(out).to eq("WIN")
  end

  it "provides correct #full_gem_path" do
    run <<-RUBY
      puts Bundler.rubygems.find_name('foo').first.full_gem_path
    RUBY
    expect(out).to eq(bundle("show foo"))
  end

end

Version data entries

14 entries across 14 versions & 1 rubygems

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