Skip to content

Commit

Permalink
Add Ruby 3.4's Hash#inspect symbol change
Browse files Browse the repository at this point in the history
  • Loading branch information
cllns committed Dec 31, 2024
1 parent 7c8fe93 commit a923d44
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion spec/integration/template_rendering/locals_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@
expose :text, decorate: false
end.new

expect(view.(text: "Hello").to_s).to eq %{Locals: {:text=>"Hello"}}
if RUBY_VERSION < "3.4"
expect(view.call(text: "Hello").to_s).to eq %{Locals: {:text=>"Hello"}}
else
expect(view.call(text: "Hello").to_s).to eq %{Locals: {text: "Hello"}}
end
end
end

0 comments on commit a923d44

Please sign in to comment.