diff --git a/spec/bundler/bundler/definition_spec.rb b/spec/bundler/bundler/definition_spec.rb index 7bc48fce05..28c04e0860 100644 --- a/spec/bundler/bundler/definition_spec.rb +++ b/spec/bundler/bundler/definition_spec.rb @@ -35,7 +35,7 @@ RSpec.describe Bundler::Definition do it "does not create a lock file" do subject.lock - expect(File.file?("Gemfile.lock")).to eq false + expect(bundled_app_lock).not_to be_file end end end