diff options
author | Andre Arko <andre@arko.net> | 2014-08-23 18:24:46 -0500 |
---|---|---|
committer | Andre Arko <andre@arko.net> | 2014-08-23 18:32:07 -0500 |
commit | 3cfb807b5d4fe4d940670983258ff017deedc2d5 (patch) | |
tree | 810f46edba098292b3ea6896510071ce285a994b | |
parent | ea143105677c4e38a2ce57bf6faa3cb8b782ef68 (diff) | |
download | bundler-3cfb807b5d4fe4d940670983258ff017deedc2d5.tar.gz |
Verify source sorting
-rw-r--r-- | spec/lock/lockfile_spec.rb | 41 |
1 files changed, 40 insertions, 1 deletions
diff --git a/spec/lock/lockfile_spec.rb b/spec/lock/lockfile_spec.rb index ef016c2cb6..588d64308c 100644 --- a/spec/lock/lockfile_spec.rb +++ b/spec/lock/lockfile_spec.rb @@ -144,7 +144,7 @@ describe "the lockfile format" do G end - it "does not assplode when a platform specific dependency is present and the Gemfile has not been resolved on that platform" do + it "does not asplode when a platform specific dependency is present and the Gemfile has not been resolved on that platform" do build_lib "omg", :path => lib_path('omg') gemfile <<-G @@ -285,6 +285,45 @@ describe "the lockfile format" do G end + it "sorts serialized sources by type" do + build_lib "foo" + bar = build_git "bar" + + install_gemfile <<-G + source "file://#{gem_repo1}" + + gem "rack" + gem "foo", :path => "#{lib_path("foo-1.0")}" + gem "bar", :git => "#{lib_path("bar-1.0")}" + G + + lockfile_should_be <<-G + GIT + remote: #{lib_path("bar-1.0")} + revision: #{bar.ref_for('master')} + specs: + bar (1.0) + + PATH + remote: #{lib_path("foo-1.0")} + specs: + foo (1.0) + + GEM + remote: file:#{gem_repo1}/ + specs: + rack (1.0.0) + + PLATFORMS + #{generic(Gem::Platform.local)} + + DEPENDENCIES + bar! + foo! + rack + G + end + it "lists gems alphabetically" do install_gemfile <<-G source "file://#{gem_repo1}" |