Sha256: edefa5c5742344bde2541dc02f3028a686ada7f497764987fff8c53b11d54ce8

Contents?: true

Size: 965 Bytes

Versions: 14

Compression:

Stored size: 965 Bytes

Contents

module DataMapper
  module Validations
    module Fixtures
      class BetaTesterAccount
        #
        # Behaviors
        #

        include ::DataMapper::Resource

        #
        # Properties
        #

        property :id,             Serial
        property :full_name,      String, :auto_validation => false
        property :email,          String, :auto_validation => false

        property :user_agreement,    Boolean, :auto_validation => false
        property :newsletter_signup, String,  :auto_validation => false
        property :privacy_agreement, String,  :auto_validation => false

        #
        # Validations
        #

        validates_acceptance_of :user_agreement, :allow_nil => false
        validates_acceptance_of :newsletter_signup
        validates_acceptance_of :privacy_agreement, :accept => %w(agreed accept), :message => "You must accept this agreement in order to proceed"
      end # BetaTesterAccount
    end
  end
end

Version data entries

14 entries across 14 versions & 2 rubygems

Version Path
ardm-validations-1.2.0 spec/fixtures/beta_tester_account.rb
dm-validations-1.2.0 spec/fixtures/beta_tester_account.rb
dm-validations-1.2.0.rc2 spec/fixtures/beta_tester_account.rb
dm-validations-1.2.0.rc1 spec/fixtures/beta_tester_account.rb
dm-validations-1.1.0 spec/fixtures/beta_tester_account.rb
dm-validations-1.1.0.rc3 spec/fixtures/beta_tester_account.rb
dm-validations-1.1.0.rc2 spec/fixtures/beta_tester_account.rb
dm-validations-1.1.0.rc1 spec/fixtures/beta_tester_account.rb
dm-validations-1.0.2 spec/fixtures/beta_tester_account.rb
dm-validations-1.0.1 spec/fixtures/beta_tester_account.rb
dm-validations-1.0.0 spec/fixtures/beta_tester_account.rb
dm-validations-1.0.0.rc3 spec/fixtures/beta_tester_account.rb
dm-validations-1.0.0.rc2 spec/fixtures/beta_tester_account.rb
dm-validations-1.0.0.rc1 spec/fixtures/beta_tester_account.rb