spec/integration/schema/check_rules_spec.rb in dry-validation-0.8.0 vs spec/integration/schema/check_rules_spec.rb in dry-validation-0.9.0
- old
+ new
@@ -26,11 +26,11 @@
it 'fails when keys are missing' do
expect(schema.({})).to be_failure
end
it 'fails when red and blue are not filled ' do
- expect(schema.(red: nil, blue: nil).messages[:destiny]).to eql(
- ['you must select either red or blue']
+ expect(schema.(red: nil, blue: nil).messages).to eql(
+ destiny: ['you must select either red or blue']
)
end
end
context 'composing specific predicates' do