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:
parent
cad71f7089
commit
10c0271f97
1 changed files with 2 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue