spec/integration/schema/predicates/format_spec.rb in dry-validation-0.10.3 vs spec/integration/schema/predicates/format_spec.rb in dry-validation-0.10.4

- old
+ new

@@ -16,11 +16,11 @@ context 'with missing input' do let(:input) { {} } it 'is not successful' do - expect(result).to be_failing ['is missing', 'is in invalid format'] + expect(result).to be_failing ['is missing'] end end context 'with nil input' do let(:input) { { foo: nil } } @@ -130,11 +130,11 @@ context 'with missing input' do let(:input) { {} } it 'is not successful' do - expect(result).to be_failing ['is missing', 'is in invalid format'] + expect(result).to be_failing ['is missing'] end end context 'with nil input' do let(:input) { { foo: nil } } @@ -186,27 +186,27 @@ context 'with missing input' do let(:input) { {} } it 'is not successful' do - expect(result).to be_failing ['is missing', 'is in invalid format'] + expect(result).to be_failing ['is missing'] end end context 'with nil input' do let(:input) { { foo: nil } } it 'is not successful' do - expect(result).to be_failing ['must be filled', 'is in invalid format'] + expect(result).to be_failing ['must be filled'] end end context 'with blank input' do let(:input) { { foo: '' } } it 'is not successful' do - expect(result).to be_failing ['must be filled', 'is in invalid format'] + expect(result).to be_failing ['must be filled'] end end context 'with invalid type' do let(:input) { { foo: { a: 1 } } } @@ -242,11 +242,11 @@ context 'with missing input' do let(:input) { {} } it 'is not successful' do - expect(result).to be_failing ['is missing', 'is in invalid format'] + expect(result).to be_failing ['is missing'] end end context 'with nil input' do let(:input) { { foo: nil } } @@ -364,18 +364,18 @@ context 'with nil input' do let(:input) { { foo: nil } } it 'is not successful' do - expect(result).to be_failing ['must be filled', 'is in invalid format'] + expect(result).to be_failing ['must be filled'] end end context 'with blank input' do let(:input) { { foo: '' } } it 'is not successful' do - expect(result).to be_failing ['must be filled', 'is in invalid format'] + expect(result).to be_failing ['must be filled'] end end context 'with invalid type' do let(:input) { { foo: { a: 1 } } }