Sha256: 3cc86977e97372e8cfbd819f38fe9bf45304bbb40b677e6e77812bce93b8b2a9

Contents?: true

Size: 1.2 KB

Versions: 15

Compression:

Stored size: 1.2 KB

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: addresses
#
#  id               :integer         not null, primary key
#  street1          :string(255)
#  street2          :string(255)
#  city             :string(64)
#  state            :string(64)
#  zipcode          :string(16)
#  country          :string(64)
#  full_address     :string(255)
#  address_type     :string(16)
#  addressable_id   :integer
#  addressable_type :string(255)
#  created_at       :datetime
#  updated_at       :datetime
#  deleted_at       :datetime
#

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

describe Address do
  before(:each) do
    login
  end

  it "should create a new instance given valid attributes" do
    Address.create!(street1: "street1", street2: "street2", city: "city", state: "state", zipcode: "zipcode", country: "country", full_address: "fa", address_type: "Lead", addressable: FactoryGirl.create(:lead))
  end
end

Version data entries

15 entries across 15 versions & 2 rubygems

Version Path
fat_free_crm-0.14.2 spec/models/polymorphic/address_spec.rb
fat_free_crm-0.15.2 spec/models/polymorphic/address_spec.rb
fat_free_crm-0.16.4 spec/models/polymorphic/address_spec.rb
fat_free_crm-0.14.1 spec/models/polymorphic/address_spec.rb
fat_free_crm-0.15.1 spec/models/polymorphic/address_spec.rb
fat_free_crm-0.16.3 spec/models/polymorphic/address_spec.rb
fat_free_crm-0.16.2 spec/models/polymorphic/address_spec.rb
fat_free_crm-0.16.1 spec/models/polymorphic/address_spec.rb
fat_free_crm-0.16.0 spec/models/polymorphic/address_spec.rb
fat_free_crm-0.15.0 spec/models/polymorphic/address_spec.rb
fat_free_crm-0.15.0.beta.2 spec/models/polymorphic/address_spec.rb
fat_free_crm-0.15.0.beta spec/models/polymorphic/address_spec.rb
fat_free_crm-0.14.0 spec/models/polymorphic/address_spec.rb
reduced_fat_crm-0.15.0.beta spec/models/polymorphic/address_spec.rb
reduced_fat_crm-0.14.0 spec/models/polymorphic/address_spec.rb