diff options
author | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2023-10-24 21:07:13 +0900 |
---|---|---|
committer | git <svn-admin@ruby-lang.org> | 2023-10-25 00:46:09 +0000 |
commit | c5861903ac5f89cafb131400835b2e3b207ba928 (patch) | |
tree | 3e3b1f2c44e4577e364c3e7cb99e1e94382a68de /spec/bundler/commands | |
parent | 820957b1ee43f296098197441680ce01f7ee1924 (diff) | |
download | ruby-c5861903ac5f89cafb131400835b2e3b207ba928.tar.gz |
[rubygems/rubygems] Handle CI configuration on ignore list for Gem::Specification#files
https://github.com/rubygems/rubygems/commit/4bb0ef3e55
Diffstat (limited to 'spec/bundler/commands')
-rw-r--r-- | spec/bundler/commands/newgem_spec.rb | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/spec/bundler/commands/newgem_spec.rb b/spec/bundler/commands/newgem_spec.rb index b34ffbc35b..310306b21a 100644 --- a/spec/bundler/commands/newgem_spec.rb +++ b/spec/bundler/commands/newgem_spec.rb @@ -960,6 +960,12 @@ RSpec.describe "bundle gem" do expect(bundled_app("#{gem_name}/.github/workflows/main.yml")).to exist end + + it "contained .gitlab-ci.yml into ignore list" do + bundle "gem #{gem_name} --ci=github" + + expect(bundled_app("#{gem_name}/#{gem_name}.gemspec").read).to include(".git .github appveyor") + end end context "--ci set to gitlab" do @@ -968,6 +974,12 @@ RSpec.describe "bundle gem" do expect(bundled_app("#{gem_name}/.gitlab-ci.yml")).to exist end + + it "contained .gitlab-ci.yml into ignore list" do + bundle "gem #{gem_name} --ci=gitlab" + + expect(bundled_app("#{gem_name}/#{gem_name}.gemspec").read).to include(".git .gitlab-ci.yml appveyor") + end end context "--ci set to circle" do @@ -976,6 +988,12 @@ RSpec.describe "bundle gem" do expect(bundled_app("#{gem_name}/.circleci/config.yml")).to exist end + + it "contained .circleci into ignore list" do + bundle "gem #{gem_name} --ci=circle" + + expect(bundled_app("#{gem_name}/#{gem_name}.gemspec").read).to include(".git .circleci appveyor") + end end context "gem.ci setting set to none" do |