Sha256: d272dfb52073b6f9605aac32f1c915f84a30e0812bd57be36ff81323c451d7f8

Contents?: true

Size: 952 Bytes

Versions: 11

Compression:

Stored size: 952 Bytes

Contents

# 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

11 entries across 11 versions & 1 rubygems

Version Path
fat_free_crm-0.13.6 spec/models/entities/contact_opportunity_spec.rb
fat_free_crm-0.13.5 spec/models/entities/contact_opportunity_spec.rb
fat_free_crm-0.13.4 spec/models/entities/contact_opportunity_spec.rb
fat_free_crm-0.13.3 spec/models/entities/contact_opportunity_spec.rb
fat_free_crm-0.13.2 spec/models/entities/contact_opportunity_spec.rb
fat_free_crm-0.12.3 spec/models/entities/contact_opportunity_spec.rb
fat_free_crm-0.12.2 spec/models/entities/contact_opportunity_spec.rb
fat_free_crm-0.13.1 spec/models/entities/contact_opportunity_spec.rb
fat_free_crm-0.12.1 spec/models/entities/contact_opportunity_spec.rb
fat_free_crm-0.13.0 spec/models/entities/contact_opportunity_spec.rb
fat_free_crm-0.12.0 spec/models/entities/contact_opportunity_spec.rb