summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndre Arko <andre@arko.net>2015-03-11 01:53:04 -0700
committerAndre Arko <andre@arko.net>2015-03-11 01:53:04 -0700
commitad2e4530b55709034ed11d96765982e4b8d34e5c (patch)
tree252434a26e0c1e778a44a22b8e6882b54473ba79
parent8525559f4d097991605812bcf1bbc36da0bc2b23 (diff)
downloadbundler-ad2e4530b55709034ed11d96765982e4b8d34e5c.tar.gz
test to ensure 1.8 can read 1.7 mirror settings
-rw-r--r--spec/bundler/settings_spec.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/bundler/settings_spec.rb b/spec/bundler/settings_spec.rb
index 0faaa3f51c..56ee87da6e 100644
--- a/spec/bundler/settings_spec.rb
+++ b/spec/bundler/settings_spec.rb
@@ -43,5 +43,11 @@ describe Bundler::Settings do
settings["local.httpsmarty"] = home("httpsmarty")
expect(settings.all).to include("local.httpsmarty")
end
+
+ it "reads older keys without trailing slashes" do
+ settings["mirror.https://rubygems.org"] = "http://rubygems-mirror.org"
+ expect(settings.gem_mirrors).to eq(URI("https://rubygems.org/") => URI("http://rubygems-mirror.org/"))
+ end
+
end
end