Skip to content

Commit

Permalink
Update payment_icon_test.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
payeverdev authored Jan 14, 2025
1 parent dd1d856 commit 21cd82b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/unit/payment_icon_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ class PaymentIconTest < ActiveSupport::TestCase
assert_equal "title", document.root.first_element_child.name,
message: "The '#{payment_type}' SVG file should have a <title> tag as first child of the root <svg> tag"

expected_title = PaymentIcon.where(name: payment_type).present? ? PaymentIcon.where(name: payment_type).first.label : payment_type
expected_title = PaymentIcon.where(name: payment_type).present? ? PaymentIcon.where(name: payment_type).first.label : payment_type.titleize
assert_equal expected_title, document.root.at('title').content,
message: "The '#{payment_type}' SVG file does not have the appropriate <title> value"

Expand Down

0 comments on commit 21cd82b

Please sign in to comment.