Sha256: 6e3effb49726a781d929ec0aa91df95c02738088528ed6f099a128be3230da34

Contents?: true

Size: 676 Bytes

Versions: 23

Compression:

Stored size: 676 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

    out.should == "WIN"
  end

  it "provides correct #full_gem_path" do
    run <<-RUBY
      puts Gem.source_index.find_name('foo').first.full_gem_path
    RUBY
    out.should == bundle("show foo")
  end

end

Version data entries

23 entries across 23 versions & 4 rubygems

Version Path
bundler-1.0.12 spec/lock/git_spec.rb
bundler-1.0.11 spec/lock/git_spec.rb
bundler_package_git-1.1.pre.1 spec/lock/git_spec.rb
bundler-1.1.pre.1 spec/lock/git_spec.rb
bundler-1.0.10 spec/lock/git_spec.rb
bundler-1.1.pre spec/lock/git_spec.rb
bundler-1.0.9 spec/lock/git_spec.rb
bundler-1.0.7 spec/lock/git_spec.rb
bundler-1.0.5 spec/lock/git_spec.rb
honkster-bundler-1.1.pre spec/lock/git_spec.rb
gemrage-1.0.0 vendor/ruby/1.8/gems/bundler-1.0.3/spec/lock/git_spec.rb
gemrage-0.4.1 vendor/ruby/1.8/gems/bundler-1.0.3/spec/lock/git_spec.rb
gemrage-0.4.0 vendor/ruby/1.8/gems/bundler-1.0.3/spec/lock/git_spec.rb
gemrage-0.3.2 vendor/ruby/1.8/gems/bundler-1.0.3/spec/lock/git_spec.rb
gemrage-0.3.1 vendor/ruby/1.8/gems/bundler-1.0.3/spec/lock/git_spec.rb
gemrage-0.3.0 vendor/ruby/1.8/gems/bundler-1.0.3/spec/lock/git_spec.rb
gemrage-0.2.0 vendor/ruby/1.8/gems/bundler-1.0.3/spec/lock/git_spec.rb
gemrage-0.1.2 vendor/ruby/1.8/gems/bundler-1.0.3/spec/lock/git_spec.rb
gemrage-0.1.1 vendor/ruby/1.8/gems/bundler-1.0.3/spec/lock/git_spec.rb
gemrage-0.1.0 vendor/ruby/1.8/gems/bundler-1.0.3/spec/lock/git_spec.rb