Sha256: 1e1c60a75b2118742a14784bbb01b9ee49a211c697e1705fdfbf9fc8c9262e31
Contents?: true
Size: 535 Bytes
Versions: 11
Compression:
Stored size: 535 Bytes
Contents
require 'test_helper' class DataMapperSchemaTest < ActiveSupport::TestCase test 'required explicitly set to false' do begin DataMapper::Property.required(true) model = Class.new(User) model.apply_devise_schema :required_string, String, :required => true model.apply_devise_schema :not_required_string, String assert model.properties['required_string'].required? assert !model.properties['not_required_string'].required? ensure DataMapper::Property.required(false) end end end
Version data entries
11 entries across 11 versions & 1 rubygems