diff --git a/packages/director-ruby-3.3/spec.lock b/packages/director-ruby-3.3/spec.lock deleted file mode 100644 index b8d56a26747..00000000000 --- a/packages/director-ruby-3.3/spec.lock +++ /dev/null @@ -1,2 +0,0 @@ -name: director-ruby-3.3 -fingerprint: 4b5ea4a880c87a85cc2205db5eea924b8ec9a00ac6fefa22f2df5f263cb50b45 diff --git a/src/bosh-director/spec/unit/bosh/director/core/templates/source_erb_spec.rb b/src/bosh-director/spec/unit/bosh/director/core/templates/source_erb_spec.rb index 43299f83222..ae3527da859 100644 --- a/src/bosh-director/spec/unit/bosh/director/core/templates/source_erb_spec.rb +++ b/src/bosh-director/spec/unit/bosh/director/core/templates/source_erb_spec.rb @@ -36,15 +36,14 @@ module Bosh::Director::Core::Templates allow(logger).to receive(:debug) end - # Ruby 3.3 uses `method_name'; Ruby 3.4+ uses 'method_name' - let(:original_error) { "undefined method [`|']no_method' for nil" } + let(:original_error) { "undefined method 'no_method' for nil" } let(:expected_message) do - /Error filling in template 'source-filename.erb' \(line 1: #{original_error}\)/ + "Error filling in template 'source-filename.erb' (line 1: #{original_error})" end it 'logs the error and the new message with the original backtrace' do - expect(logger).to receive(:debug).with(/#/) + expect(logger).to receive(:debug).with("#") expect(logger).to receive(:debug) do |message| expect(message).to include(expected_message) expect(message).to include("fake-job-name/source-filename.erb:1:in 'get_binding'")