Sha256: c7ed6b828b00f05f278b9419d7b3f6ad6d698b4c971023c4c6380690c2ac9d69

Contents?: true

Size: 269 Bytes

Versions: 1

Compression:

Stored size: 269 Bytes

Contents

require 'rubygems'
require 'test/unit'
require 'active_model'
require 'presence_at_least_one_validator'
require 'ostruct'

class ExpenseReport < OpenStruct
  include ActiveModel::Validations

  validates :customer, :service_provider, :presence_at_least_one => true
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
presence_at_least_one_validator-0.1.0 test/test_helper.rb