Skip to content
This repository was archived by the owner on Oct 19, 2018. It is now read-only.

Commit 010ae27

Browse files
committed
[opal-0.9] Fix validator_spec
1 parent 69172cf commit 010ae27

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

spec/react/validator_spec.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,7 @@
5757
validator = React::Validator.new.build do
5858
requires :foo, type: Array[Fixnum]
5959
end
60-
61-
message = "Provided prop `foo`[0] could not be converted to Numeric"
60+
message = "Provided prop `foo`[0] could not be converted to #{Fixnum.name}"
6261
expect(validator.validate({foo: `[ { x: 1 } ]`})).to eq([message])
6362
end
6463

0 commit comments

Comments
 (0)