Skip to content

Commit dd140c3

Browse files
committed
Fix encoding in ReflexFactoryTest
1 parent 538582d commit dd140c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/reflex_factory_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ class StimulusReflex::ReflexFactoryTest < ActionCable::Channel::TestCase
77

88
test "reflex class needs to be an ancestor of StimulusReflex::Reflex" do
99
exception = assert_raises(NameError) { StimulusReflex::ReflexFactory.new(subscribe, {target: "Object#inspect"}).call }
10-
assert_equal "uninitialized constant ObjectReflex", exception.message
10+
assert_includes exception.message.force_encoding("utf-8"), "uninitialized constant ObjectReflex"
1111

1212
exception = assert_raises(ArgumentError) { StimulusReflex::ReflexFactory.new(subscribe, {target: "NoReflex#no_reflex"}).call }
1313
assert_equal "NoReflex is not a StimulusReflex::Reflex", exception.message

0 commit comments

Comments
 (0)