Skip to content

Commit

Permalink
chore: account for rendering change in ruby 3.4 tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jkeen committed Nov 5, 2024
1 parent 4cad908 commit fd528c4
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions spec/schema_diff_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit fd528c4

Please sign in to comment.