diff options
Diffstat (limited to 'spec/install/git_spec.rb')
-rw-r--r-- | spec/install/git_spec.rb | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/spec/install/git_spec.rb b/spec/install/git_spec.rb index 36a704c32e..55a4a209f8 100644 --- a/spec/install/git_spec.rb +++ b/spec/install/git_spec.rb @@ -66,4 +66,17 @@ describe "gemfile install with git sources" do out.should == "WIN" end end + + describe "pinning" do + it "installs from git even if a newer gem is available elsewhere" do + build_git "rack", "0.8" + + install_gemfile <<-G + source "file://#{gem_repo1}" + gem "rack", :git => "#{lib_path('rack-0.8')}" + G + + should_be_installed "rack 0.8" + end + end end
\ No newline at end of file |