diff options
author | Andre Arko <andre@arko.net> | 2010-04-03 01:08:50 -0700 |
---|---|---|
committer | Andre Arko <andre@arko.net> | 2010-04-03 01:08:50 -0700 |
commit | 00fd2be0a624a4bdadd0a17d5172969ef3f11884 (patch) | |
tree | 853957c54a120bc2acea6c6ee8e42a51d014b2a9 /spec/install/git_spec.rb | |
parent | f69931f12d20a089caba6574d9a9224f8092d2a0 (diff) | |
download | bundler-00fd2be0a624a4bdadd0a17d5172969ef3f11884.tar.gz |
Attempted spec for long-name tar error. Passes, though.
Diffstat (limited to 'spec/install/git_spec.rb')
-rw-r--r-- | spec/install/git_spec.rb | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/spec/install/git_spec.rb b/spec/install/git_spec.rb index 264c539f50..2dfc8ef7af 100644 --- a/spec/install/git_spec.rb +++ b/spec/install/git_spec.rb @@ -284,4 +284,24 @@ describe "bundle install with git sources" do out.should match(/could not find gem 'foo/i) out.should match(/run `bundle install`/i) end + + it "handles long gem names and full shas with C extensions" do + build_git "some_gem_with_a_really_stupidly_long_name_argh" do |s| + s.executables = "stupid" + s.add_c_extension + end + sha = revision_for(lib_path("some_gem_with_a_really_stupidly_long_name_argh-1.0")) + install_gemfile <<-G + gem "some_gem_with_a_really_stupidly_long_name_argh", + :git => "#{lib_path("some_gem_with_a_really_stupidly_long_name_argh-1.0")}", + :ref => "#{sha}" + G + should_be_installed "some_gem_with_a_really_stupidly_long_name_argh 1.0" + + bundle "show some_gem_with_a_really_stupidly_long_name_argh" + puts out + + bundle "exec stupid" + out.should == "1.0" + end end |