summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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")