diff options
author | Samuel Giddins <segiddins@segiddins.me> | 2016-03-22 14:55:28 +0100 |
---|---|---|
committer | Samuel Giddins <segiddins@segiddins.me> | 2016-03-28 14:24:34 -0500 |
commit | f3963a540b4d7ba8b921068b286e61dc3f1103b1 (patch) | |
tree | d66d6f2389c291884656a53d03506b131093e547 /spec/commands | |
parent | 57886bf5be64282841b5f520bd46e5006c7576e5 (diff) | |
download | bundler-f3963a540b4d7ba8b921068b286e61dc3f1103b1.tar.gz |
[Show] Add spec for when there is a `-` pre dep with git source
Diffstat (limited to 'spec/commands')
-rw-r--r-- | spec/commands/show_spec.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/spec/commands/show_spec.rb b/spec/commands/show_spec.rb index 7cfa02d418..2b1c50b9f7 100644 --- a/spec/commands/show_spec.rb +++ b/spec/commands/show_spec.rb @@ -110,6 +110,17 @@ describe "bundle show" do bundle :show expect(out).to include("foo (1.0 #{sha[0..6]})") end + + it "handles when a version is a '-' prerelease" do + @git = build_git("foo", "1.0.0-beta.1", :path => lib_path("foo")) + install_gemfile <<-G + gem "foo", "1.0.0-beta.1", :git => "#{lib_path("foo")}" + G + should_be_installed "foo 1.0.0.pre.beta.1" + + bundle! :show + expect(out).to include("foo (1.0.0.pre.beta.1") + end end context "in a fresh gem in a blank git repo" do |