diff options
author | Samuel Giddins <segiddins@segiddins.me> | 2016-10-09 21:13:18 -0500 |
---|---|---|
committer | Samuel Giddins <segiddins@segiddins.me> | 2016-10-09 21:13:18 -0500 |
commit | 37a0f13d9c3978a6ae1722c71d8917b001b0dc2d (patch) | |
tree | 400e8661ce5444ecf2874d5fcfb24974873ecaad /spec/bundler/fetcher | |
parent | c783394badaa3912006f17a78d8537c049b41c77 (diff) | |
download | bundler-37a0f13d9c3978a6ae1722c71d8917b001b0dc2d.tar.gz |
Update the dependency fetcher spec to pass in a flat array of gem namesseg-sort-dep-api-gem-names
Diffstat (limited to 'spec/bundler/fetcher')
-rw-r--r-- | spec/bundler/fetcher/dependency_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/bundler/fetcher/dependency_spec.rb b/spec/bundler/fetcher/dependency_spec.rb index bf7749d07a..d021a246f7 100644 --- a/spec/bundler/fetcher/dependency_spec.rb +++ b/spec/bundler/fetcher/dependency_spec.rb @@ -262,13 +262,13 @@ describe Bundler::Fetcher::Dependency do let(:uri) { URI("http://gem-api.com") } context "with gem names" do - let(:gem_names) { [%w(foo bar), %w(bundler rubocop)] } + let(:gem_names) { %w(foo bar bundler rubocop) } before { allow(subject).to receive(:fetch_uri).and_return(uri) } it "should return an api calling uri with the gems in the query" do expect(subject.dependency_api_uri(gem_names).to_s).to eq( - "http://gem-api.com/api/v1/dependencies?gems=foo%2Cbar%2Cbundler%2Crubocop" + "http://gem-api.com/api/v1/dependencies?gems=bar%2Cbundler%2Cfoo%2Crubocop" ) end end |