Sha256: 532ffe7a98daf26d919f4b1a29c92f6483d862e5c2bbd392811c3b3e1fdc860d

Contents?: true

Size: 976 Bytes

Versions: 10

Compression:

Stored size: 976 Bytes

Contents

# frozen_string_literal: true

# Copyright (c) 2008-2013 Michael Dvorkin and contributors.
#
# Fat Free CRM is freely distributable under the terms of MIT license.
# See MIT-LICENSE file or http://www.opensource.org/licenses/mit-license.php
#------------------------------------------------------------------------------
# == Schema Information
#
# Table name: contact_opportunities
#
#  id             :integer         not null, primary key
#  contact_id     :integer
#  opportunity_id :integer
#  role           :string(32)
#  deleted_at     :datetime
#  created_at     :datetime
#  updated_at     :datetime
#

require File.expand_path(File.dirname(__FILE__) + '/../../spec_helper')

describe ContactOpportunity do
  before(:each) do
    @valid_attributes = {
      contact: mock_model(Contact),
      opportunity: mock_model(Opportunity)
    }
  end

  it "should create a new instance given valid attributes" do
    ContactOpportunity.create!(@valid_attributes)
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
fat_free_crm-0.20.1 spec/models/entities/contact_opportunity_spec.rb
fat_free_crm-0.20.0 spec/models/entities/contact_opportunity_spec.rb
fat_free_crm-0.19.2 spec/models/entities/contact_opportunity_spec.rb
fat_free_crm-0.19.0 spec/models/entities/contact_opportunity_spec.rb
fat_free_crm-0.18.2 spec/models/entities/contact_opportunity_spec.rb
fat_free_crm-0.17.3 spec/models/entities/contact_opportunity_spec.rb
fat_free_crm-0.18.1 spec/models/entities/contact_opportunity_spec.rb
fat_free_crm-0.18.0 spec/models/entities/contact_opportunity_spec.rb
fat_free_crm-0.17.2 spec/models/entities/contact_opportunity_spec.rb
fat_free_crm-0.17.1 spec/models/entities/contact_opportunity_spec.rb