test/europe/vat/validation_test.rb in europe-0.0.6 vs test/europe/vat/validation_test.rb in europe-0.0.7

- old
+ new

@@ -17,20 +17,20 @@ def test_validation_of_correct_vat_number # PostNL validate_correct_vat = Europe::Vat.validate('NL009291477B01') assert validate_correct_vat[:valid] \ - unless [:timeout, :failed].include?(validate_correct_vat) + unless %i[timeout failed].include?(validate_correct_vat) # Sky validate_correct_vat = Europe::Vat.validate('GB440627467') assert validate_correct_vat[:valid] \ - unless [:timeout, :failed].include?(validate_correct_vat) + unless %i[timeout failed].include?(validate_correct_vat) # Volkswagen validate_correct_vat = Europe::Vat.validate('DE115235681') assert validate_correct_vat[:valid] \ - unless [:timeout, :failed].include?(validate_correct_vat) + unless %i[timeout failed].include?(validate_correct_vat) end def test_failed_request_to_soap_service WebMock.enable! stub_request(:any, 'http://ec.europa.eu/taxation_customs' \