1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[bundler/bundler] Remove duplicated let's

https://github.com/bundler/bundler/commit/43ffaab796
This commit is contained in:
David Rodríguez 2019-06-17 10:23:24 +02:00 committed by Hiroshi SHIBATA
parent cad71f7089
commit 10c0271f97
No known key found for this signature in database
GPG key ID: F9CF13417264FAC2

View file

@ -16,6 +16,8 @@ RSpec.describe "bundle gem" do
expect(bundled_app("#{gem_name}/lib/test/gem/version.rb")).to exist
end
let(:generated_gem) { Bundler::GemHelper.new(bundled_app(gem_name).to_s) }
before do
global_config "BUNDLE_GEM__MIT" => "false", "BUNDLE_GEM__TEST" => "false", "BUNDLE_GEM__COC" => "false"
git_config_content = <<-EOF
@ -116,7 +118,6 @@ RSpec.describe "bundle gem" do
context "README.md" do
let(:gem_name) { "test_gem" }
let(:generated_gem) { Bundler::GemHelper.new(bundled_app(gem_name).to_s) }
context "git config github.user present" do
before do
@ -232,8 +233,6 @@ RSpec.describe "bundle gem" do
execute_bundle_gem(gem_name)
end
let(:generated_gem) { Bundler::GemHelper.new(bundled_app(gem_name).to_s) }
it "generates a gem skeleton" do
expect(bundled_app("test_gem/test_gem.gemspec")).to exist
expect(bundled_app("test_gem/Gemfile")).to exist
@ -516,8 +515,6 @@ RSpec.describe "bundle gem" do
execute_bundle_gem(gem_name)
end
let(:generated_gem) { Bundler::GemHelper.new(bundled_app(gem_name).to_s) }
it "generates a gem skeleton" do
expect(bundled_app("test-gem/test-gem.gemspec")).to exist
expect(bundled_app("test-gem/Gemfile")).to exist