Sha256: afea81a615f381203a850f028992e098ba9e87723dcde6acdfe657c919d0f480

Contents?: true

Size: 337 Bytes

Versions: 16

Compression:

Stored size: 337 Bytes

Contents

require 'spec_helper'

describe GeoCountry do
  it "can be instantiated" do
    GeoCountry.new.should be_an_instance_of(GeoCountry)
  end

  it "can be saved successfully" do
    #name, iso_code_2, :iso_code_3 are required
    GeoCountry.create(:name => 'test', :iso_code_2 => '12', :iso_code_3 => '345').should be_persisted
  end
  
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
erp_base_erp_svcs-4.2.0 spec/models/geo_country_spec.rb
erp_base_erp_svcs-4.0.0 spec/models/geo_country_spec.rb
erp_base_erp_svcs-3.1.5 spec/models/geo_country_spec.rb
erp_base_erp_svcs-3.1.4 spec/models/geo_country_spec.rb
erp_base_erp_svcs-3.1.3 spec/models/geo_country_spec.rb
erp_base_erp_svcs-3.1.2 spec/models/geo_country_spec.rb
erp_base_erp_svcs-3.1.1 spec/models/geo_country_spec.rb
erp_base_erp_svcs-3.0.7 spec/models/geo_country_spec.rb
erp_base_erp_svcs-3.1.0 spec/models/geo_country_spec.rb
erp_base_erp_svcs-3.0.6 spec/models/geo_country_spec.rb
erp_base_erp_svcs-3.0.5 spec/models/geo_country_spec.rb
erp_base_erp_svcs-3.0.4 spec/models/geo_country_spec.rb
erp_base_erp_svcs-3.0.3 spec/models/geo_country_spec.rb
erp_base_erp_svcs-3.0.2 spec/models/geo_country_spec.rb
erp_base_erp_svcs-3.0.1 spec/models/geo_country_spec.rb
erp_base_erp_svcs-3.0.0 spec/models/geo_country_spec.rb