Sha256: 31fe168bb6c1dd407b80b7855ea9e104090b0aafeda917e5611c7d37c292bec6

Contents?: true

Size: 366 Bytes

Versions: 8

Compression:

Stored size: 366 Bytes

Contents

require "reform"
require "minitest/autorun"

class ValidationLibraryProvidedTest < MiniTest::Spec
  it "no validation library loaded" do
    assert_raises Reform::Validation::NoValidationLibraryError do
      class PersonForm < Reform::Form
        property :name

        validation do
          required(:name).maybe(:str?)
        end
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
reform-2.6.2 test/validation_library_provided_test.rb
reform-2.6.1 test/validation_library_provided_test.rb
reform-2.6.0 test/validation_library_provided_test.rb
reform-2.5.0 test/validation_library_provided_test.rb
reform-2.3.3 test/validation_library_provided_test.rb
reform-2.3.2 test/validation_library_provided_test.rb
reform-2.3.1 test/validation_library_provided_test.rb
reform-2.3.0.rc2 test/validation_library_provided_test.rb