summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2025-08-13 21:55:34 +0200
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2025-09-03 23:38:37 +0900
commitb4c9ccefd6a34a24dfc509966cd679063813100f (patch)
tree89c39126e15f717bf452c63e0b6841fa5ac5b6bf
parent50d4622637b73715d20c5112f38d6fae0109c78f (diff)
[rubygems/rubygems] Remove unnecessary subject from one spec
https://github.com/rubygems/rubygems/commit/a761581e89
-rw-r--r--spec/bundler/commands/cache_spec.rb8
1 files changed, 2 insertions, 6 deletions
diff --git a/spec/bundler/commands/cache_spec.rb b/spec/bundler/commands/cache_spec.rb
index 20d817a47d..6e05ea4f6d 100644
--- a/spec/bundler/commands/cache_spec.rb
+++ b/spec/bundler/commands/cache_spec.rb
@@ -299,11 +299,6 @@ RSpec.describe "bundle cache" do
bundle "install"
end
- subject do
- bundle "config set --local frozen true"
- bundle :cache, raise_on_error: false
- end
-
it "tries to install with frozen" do
bundle "config set deployment true"
gemfile <<-G
@@ -311,7 +306,8 @@ RSpec.describe "bundle cache" do
gem "myrack"
gem "myrack-obama"
G
- subject
+ bundle "config set --local frozen true"
+ bundle :cache, raise_on_error: false
expect(exitstatus).to eq(16)
expect(err).to include("frozen mode")
expect(err).to include("You have added to the Gemfile")