blob: 5d834416d14619242dfac933658815e9584f7efd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
# frozen_string_literal: true
require "spec_helper"
describe "bundle install" do
context "git sources" do
it "displays the revision hash of the gem repository" do
build_git "foo", "1.0", :path => lib_path("foo")
install_gemfile <<-G
gem "foo", :git => "#{lib_path("foo")}"
G
bundle :install
expect(out).to include("Using foo 1.0 from #{lib_path("foo")} (at master@#{revision_for(lib_path("foo"))[0..6]})")
should_be_installed "foo 1.0"
end
it "should check out git repos that are missing but not being installed" do
build_git "foo"
gemfile <<-G
gem "foo", :git => "file://#{lib_path("foo-1.0")}", :group => :development
G
lockfile <<-L
GIT
remote: file://#{lib_path("foo-1.0")}
specs:
foo (1.0)
PLATFORMS
ruby
DEPENDENCIES
foo!
L
bundle "install --path=vendor/bundle --without development"
expect(out).to include("Bundle complete!")
end
end
end
|