[DRE-maint] Bug#867027: test failure: Grape::Validations::CoerceValidator coerce multiple types for primitive collections when updating ruby-hashie
Pirate Praveen
praveen at onenetbeyond.org
Mon Jul 3 13:50:57 UTC 2017
package: ruby-grape
version: 0.16.2-2
When updating ruby-hashie to 3.5.5 (in alioth git), the following tests
fail.
Failures:
1) Grape::Validations::CoerceValidator coerce multiple types for
primitive collections allows singular form declaration
Failure/Error: expect(last_response.body).to eq('["the", "other"]')
expected: "[\"the\", \"other\"]"
got: "#<Hashie::Array [\"the\", \"other\"]>"
(compared using ==)
# ./spec/grape/validations/validators/coerce_spec.rb:628:in `block
(5 levels) in <top (required)>'
2) Grape::Validations::CoerceValidator coerce multiple types for
primitive collections allows multiple collection types
Failure/Error: expect(last_response.body).to eq('[1, 2, 3]')
expected: "[1, 2, 3]"
got: "#<Hashie::Array [1, 2, 3]>"
(compared using ==)
# ./spec/grape/validations/validators/coerce_spec.rb:642:in `block
(5 levels) in <top (required)>'
3) Grape::Validations::CoerceValidator coerce multiple types for
primitive collections allows collections with multiple types
Failure/Error: expect(last_response.body).to eq('[1, 2, "true",
"three"]')
expected: "[1, 2, \"true\", \"three\"]"
got: "#<Hashie::Array [1, 2, \"true\", \"three\"]>"
(compared using ==)
# ./spec/grape/validations/validators/coerce_spec.rb:656:in `block
(5 levels) in <top (required)>'
Finished in 6.79 seconds (files took 0.76208 seconds to load)
1452 examples, 3 failures
Failed examples:
rspec ./spec/grape/validations/validators/coerce_spec.rb:621 #
Grape::Validations::CoerceValidator coerce multiple types for primitive
collections allows singular form declaration
rspec ./spec/grape/validations/validators/coerce_spec.rb:639 #
Grape::Validations::CoerceValidator coerce multiple types for primitive
collections allows multiple collection types
rspec ./spec/grape/validations/validators/coerce_spec.rb:653 #
Grape::Validations::CoerceValidator coerce multiple types for primitive
collections allows collections with multiple types
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-ruby-extras-maintainers/attachments/20170703/459ca08f/attachment.sig>
More information about the Pkg-ruby-extras-maintainers
mailing list