blob: 551af77365a12bd1a5a4e32c26d0e6836de62ab6 (
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
|
require "spec_helper"
describe "bundle cache" do
describe "with git sources" do
it "is silent when the path is within the bundle" do
build_git "foo", :path => "file://#{lib_path('foo')}/.git"
install_gemfile <<-G
gem "foo", :git => "file://#{lib_path('foo')}/.git"
G
bundle "install"
bundle "cache"
out.should match /Updating .gem files in vendor\/cache/
end
it "locks the gemfile" do
build_git "foo", :path => "file://#{lib_path('foo')}/.git"
install_gemfile <<-G
gem "foo", :git => "file://#{lib_path('foo')}/.git"
G
bundle "cache"
bundled_app("Gemfile.lock").should exist
end
it "caches the gems" do
build_git "foo", :path => "file://#{lib_path('foo')}/.git"
install_gemfile <<-G
gem "foo", :git => "file://#{lib_path('foo')}/.git"
G
bundle "cache"
pending "resolution of Bundler issue #67 (Github)" do
bundled_app("vendor/cache/foo-1.0.0.gem").should exist
end
end
end
end
|