diff options
| author | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2025-06-27 17:19:41 +0900 |
|---|---|---|
| committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2025-06-30 12:56:50 +0900 |
| commit | 4e3ef1d9b336ded195eccba11d7b17bed1766877 (patch) | |
| tree | 82cc3f34a930b0a313a239ba4a663621459d26ba | |
| parent | 949f125f0f5a22e41732565d40f566b5c70ad8f9 (diff) | |
[rubygems/rubygems] Added extra examples
https://github.com/rubygems/rubygems/commit/a2e4d8299f
| -rw-r--r-- | spec/bundler/commands/newgem_spec.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/spec/bundler/commands/newgem_spec.rb b/spec/bundler/commands/newgem_spec.rb index 00a82f2ccc..5fc3c7109b 100644 --- a/spec/bundler/commands/newgem_spec.rb +++ b/spec/bundler/commands/newgem_spec.rb @@ -1611,6 +1611,11 @@ RSpec.describe "bundle gem" do end it_behaves_like "--bundle flag" it_behaves_like "--no-bundle flag" + + it "runs bundle install" do + bundle "gem #{gem_name}" + expect(out).to include("Running bundle install in the new gem directory.") + end end context "with bundle option in bundle config settings set to false" do @@ -1619,6 +1624,11 @@ RSpec.describe "bundle gem" do end it_behaves_like "--bundle flag" it_behaves_like "--no-bundle flag" + + it "does not run bundle install" do + bundle "gem #{gem_name}" + expect(out).to_not include("Running bundle install in the new gem directory.") + end end end |
