Sha256: 68cf5b37c381713cd245b6c948fccc35027ba3ad6dea16890541311b25b3e7b7

Contents?: true

Size: 1.04 KB

Versions: 18

Compression:

Stored size: 1.04 KB

Contents

require "rails_helper"

RSpec.describe ::Dorsale::CustomerVault::Corporation, type: :model do
  it { is_expected.to have_one(:address).dependent(:destroy) }
  it { is_expected.to have_many :comments }
  it { is_expected.to have_many :taggings }
  it { is_expected.to have_many :tags }
  it { is_expected.to have_many :individuals }
  it { is_expected.to have_many(:tasks).dependent(:destroy) }
  it { is_expected.to have_many(:events).dependent(:destroy) }

  it { is_expected.to respond_to :legal_form }
  it { is_expected.to respond_to :capital }
  it { is_expected.to respond_to :immatriculation_number }
  it { is_expected.to respond_to :naf }
  it { is_expected.to respond_to :revenue }
  it { is_expected.to respond_to :context }
  it { is_expected.to respond_to :number_of_employees }
  it { is_expected.to respond_to :societe_com }

  it { is_expected.to belong_to :activity_type }
  it { is_expected.to belong_to :origin }

  it { is_expected.to have_many(:comments).dependent(:destroy) }

  it { is_expected.to validate_presence_of :corporation_name }
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
dorsale-3.14.1 spec/models/dorsale/customer_vault/corporation_spec.rb
dorsale-3.14.0 spec/models/dorsale/customer_vault/corporation_spec.rb
dorsale-3.13.0 spec/models/dorsale/customer_vault/corporation_spec.rb
dorsale-3.12.0 spec/models/dorsale/customer_vault/corporation_spec.rb
dorsale-3.11.0 spec/models/dorsale/customer_vault/corporation_spec.rb
dorsale-3.10.3 spec/models/dorsale/customer_vault/corporation_spec.rb
dorsale-3.10.2 spec/models/dorsale/customer_vault/corporation_spec.rb
dorsale-3.10.1 spec/models/dorsale/customer_vault/corporation_spec.rb
dorsale-3.10.0 spec/models/dorsale/customer_vault/corporation_spec.rb
dorsale-3.9.8 spec/models/dorsale/customer_vault/corporation_spec.rb
dorsale-3.9.7 spec/models/dorsale/customer_vault/corporation_spec.rb
dorsale-3.9.6 spec/models/dorsale/customer_vault/corporation_spec.rb
dorsale-3.9.5 spec/models/dorsale/customer_vault/corporation_spec.rb
dorsale-3.9.4 spec/models/dorsale/customer_vault/corporation_spec.rb
dorsale-3.9.3 spec/models/dorsale/customer_vault/corporation_spec.rb
dorsale-3.9.2 spec/models/dorsale/customer_vault/corporation_spec.rb
dorsale-3.9.1 spec/models/dorsale/customer_vault/corporation_spec.rb
dorsale-3.9.0 spec/models/dorsale/customer_vault/corporation_spec.rb