diff options
author | Frank Lam <ryzingsun11@yahoo.com> | 2020-05-28 15:32:00 +0800 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2020-06-18 19:14:15 +0900 |
commit | 0d3c185b59e38eeb92c32a49b0a8c5c57c337054 (patch) | |
tree | 983478b6403cca96f1e814408e550d69d92fa3d4 /spec/bundler/commands | |
parent | 25ac5b360610760dfdf78f56bc065eff1e0a43c9 (diff) | |
download | ruby-0d3c185b59e38eeb92c32a49b0a8c5c57c337054.tar.gz |
[rubygems/rubygems] Remove shared examples for present test framework
* `bundle gem` has new option to select CI provider
https://github.com/rubygems/rubygems/commit/320f3546c1
Diffstat (limited to 'spec/bundler/commands')
-rw-r--r-- | spec/bundler/commands/newgem_spec.rb | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/spec/bundler/commands/newgem_spec.rb b/spec/bundler/commands/newgem_spec.rb index 76ef96b5b0..100effa6ee 100644 --- a/spec/bundler/commands/newgem_spec.rb +++ b/spec/bundler/commands/newgem_spec.rb @@ -203,12 +203,6 @@ RSpec.describe "bundle gem" do end end - shared_examples_for "test framework is present" do - it "creates a .travis.yml file to test the library against the current Ruby version on Travis CI" do - expect(bundled_app("#{gem_name}/.travis.yml").read).to match(/- #{RUBY_VERSION}/) - end - end - shared_examples_for "test framework is absent" do it "does not create any test framework files" do expect(bundled_app("#{gem_name}/.rspec")).to_not exist @@ -463,8 +457,6 @@ RSpec.describe "bundle gem" do it "creates a default test which fails" do expect(bundled_app("#{gem_name}/spec/#{require_path}_spec.rb").read).to include("expect(false).to eq(true)") end - - it_behaves_like "test framework is present" end context "gem.test setting set to rspec" do @@ -478,8 +470,6 @@ RSpec.describe "bundle gem" do expect(bundled_app("#{gem_name}/spec/#{require_path}_spec.rb")).to exist expect(bundled_app("#{gem_name}/spec/spec_helper.rb")).to exist end - - it_behaves_like "test framework is present" end context "gem.test setting set to rspec and --test is set to minitest" do @@ -492,8 +482,6 @@ RSpec.describe "bundle gem" do expect(bundled_app("#{gem_name}/test/#{require_path}_test.rb")).to exist expect(bundled_app("#{gem_name}/test/test_helper.rb")).to exist end - - it_behaves_like "test framework is present" end context "--test parameter set to minitest" do @@ -526,8 +514,6 @@ RSpec.describe "bundle gem" do it "creates a default test which fails" do expect(bundled_app("#{gem_name}/test/#{require_path}_test.rb").read).to include("assert false") end - - it_behaves_like "test framework is present" end context "gem.test setting set to minitest" do @@ -552,8 +538,6 @@ RSpec.describe "bundle gem" do expect(bundled_app("#{gem_name}/Rakefile").read).to eq(rakefile) end - - it_behaves_like "test framework is present" end context "--test parameter set to test-unit" do @@ -586,8 +570,6 @@ RSpec.describe "bundle gem" do it "creates a default test which fails" do expect(bundled_app("#{gem_name}/test/#{require_path}_test.rb").read).to include("assert_equal(\"expected\", \"actual\")") end - - it_behaves_like "test framework is present" end context "--ci with no arugment" do @@ -700,8 +682,6 @@ RSpec.describe "bundle gem" do expect(bundled_app("#{gem_name}/Rakefile").read).to eq(rakefile) end - - it_behaves_like "test framework is present" end context "gem.test set to rspec and --test with no arguments", :hint_text do @@ -722,8 +702,6 @@ RSpec.describe "bundle gem" do "This setting can be changed anytime with `bundle config gem.test`." expect(out).to match(hint) end - - it_behaves_like "test framework is present" end context "gem.test setting set to false and --test with no arguments", :hint_text do |