Sha256: 770ac7f7fea732185b571f3ff07e05de11659cbe800e9ddd958fa0485cf06f80

Contents?: true

Size: 1.23 KB

Versions: 11

Compression:

Stored size: 1.23 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

11 entries across 11 versions & 1 rubygems

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