Sha256: 557fb15f46b8e531188d313933f49d4223111a3b6a741f89e1d4ff7330af7e63
Contents?: true
Size: 1.21 KB
Versions: 17
Compression:
Stored size: 1.21 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 } it "should have a valid factory" do corporation = create(:customer_vault_corporation) expect(corporation).to be_valid expect(Dorsale::Address.count).to eq 1 end end
Version data entries
17 entries across 17 versions & 1 rubygems