We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
ReflexFactoryTest
1 parent 538582d commit dd140c3Copy full SHA for dd140c3
test/reflex_factory_test.rb
@@ -7,7 +7,7 @@ class StimulusReflex::ReflexFactoryTest < ActionCable::Channel::TestCase
7
8
test "reflex class needs to be an ancestor of StimulusReflex::Reflex" do
9
exception = assert_raises(NameError) { StimulusReflex::ReflexFactory.new(subscribe, {target: "Object#inspect"}).call }
10
- assert_equal "uninitialized constant ObjectReflex", exception.message
+ assert_includes exception.message.force_encoding("utf-8"), "uninitialized constant ObjectReflex"
11
12
exception = assert_raises(ArgumentError) { StimulusReflex::ReflexFactory.new(subscribe, {target: "NoReflex#no_reflex"}).call }
13
assert_equal "NoReflex is not a StimulusReflex::Reflex", exception.message
0 commit comments