зеркало из https://github.com/github/ruby.git
[bundler/bundler] Reuse `gemfile` spec helper
https://github.com/bundler/bundler/commit/22de94d3b4
This commit is contained in:
Родитель
05c3b7c8a9
Коммит
aae244569b
|
@ -478,12 +478,10 @@ end
|
||||||
RSpec.describe "setting gemfile via config" do
|
RSpec.describe "setting gemfile via config" do
|
||||||
context "when only the non-default Gemfile exists" do
|
context "when only the non-default Gemfile exists" do
|
||||||
it "persists the gemfile location to .bundle/config" do
|
it "persists the gemfile location to .bundle/config" do
|
||||||
File.open(bundled_app("NotGemfile"), "w") do |f|
|
gemfile bundled_app("NotGemfile"), <<-G
|
||||||
f.write <<-G
|
source "#{file_uri_for(gem_repo1)}"
|
||||||
source "#{file_uri_for(gem_repo1)}"
|
gem 'rack'
|
||||||
gem 'rack'
|
G
|
||||||
G
|
|
||||||
end
|
|
||||||
|
|
||||||
bundle "config set --local gemfile #{bundled_app("NotGemfile")}"
|
bundle "config set --local gemfile #{bundled_app("NotGemfile")}"
|
||||||
expect(File.exist?(".bundle/config")).to eq(true)
|
expect(File.exist?(".bundle/config")).to eq(true)
|
||||||
|
|
Загрузка…
Ссылка в новой задаче