From fd528c4d2c6a4fbb300501a2504e6428a5b80168 Mon Sep 17 00:00:00 2001 From: Jeff Keen Date: Tue, 5 Nov 2024 17:34:04 -0600 Subject: [PATCH] chore: account for rendering change in ruby 3.4 tests --- spec/schema_diff_spec.rb | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/spec/schema_diff_spec.rb b/spec/schema_diff_spec.rb index 64bfd480..d61d9c8d 100644 --- a/spec/schema_diff_spec.rb +++ b/spec/schema_diff_spec.rb @@ -490,9 +490,15 @@ def self.name end it "returns error" do - expect(diff).to eq([ - 'SchemaDiff::EmployeeResource: default sort changed from [{:foo=>"asc"}] to [{:foo=>"desc"}].' - ]) + if RUBY_VERSION >= "3.4" + expect(diff).to eq([ + 'SchemaDiff::EmployeeResource: default sort changed from [{foo: "asc"}] to [{foo: "desc"}].' + ]) + else + expect(diff).to eq([ + 'SchemaDiff::EmployeeResource: default sort changed from [{:foo=>"asc"}] to [{:foo=>"desc"}].' + ]) + end end end