Sha256: bb3c0407f5b949f960fa445b365702814f402f2def251d80fbc591d16eba3f6c

Contents?: true

Size: 556 Bytes

Versions: 6

Compression:

Stored size: 556 Bytes

Contents

# encoding: utf-8

require 'test_helper'

class InvoiceBar::ContactTest < ActiveSupport::TestCase
  should allow_mass_assignment_of :ic
  should allow_mass_assignment_of :dic
  should allow_mass_assignment_of :bank_account
  should allow_mass_assignment_of :email
  should allow_mass_assignment_of :phone
  should allow_mass_assignment_of :web
  should accept_nested_attributes_for :address
  should validate_presence_of :name
  should validate_presence_of :user_id
  should ensure_length_of(:dic).is_at_least(4).is_at_most(14)
  should belong_to :user
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
invoice_bar-0.0.6 test/unit/invoice_bar/contact_test.rb
invoice_bar-0.0.5 test/unit/invoice_bar/contact_test.rb
invoice_bar-0.0.4 test/unit/invoice_bar/contact_test.rb
invoice_bar-0.0.3 test/unit/invoice_bar/contact_test.rb
invoice_bar-0.0.2 test/unit/invoice_bar/contact_test.rb
invoice_bar-0.0.1 test/unit/invoice_bar/contact_test.rb