Sha256: 7f90f539ed99b27fa9a0b925ec9caa96586b299a433c95d2ca86a98a7d83eddf

Contents?: true

Size: 387 Bytes

Versions: 16

Compression:

Stored size: 387 Bytes

Contents

require 'spec_helper'

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

  it "can be saved successfully" do
    geo_country = GeoCountry.create(:name => 'test', :iso_code_2 => '12', :iso_code_3 => '345')
    GeoZone.create(:geo_country_id => geo_country.id, :zone_code => '12', :zone_name => 'test').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_zone_spec.rb
erp_base_erp_svcs-4.0.0 spec/models/geo_zone_spec.rb
erp_base_erp_svcs-3.1.5 spec/models/geo_zone_spec.rb
erp_base_erp_svcs-3.1.4 spec/models/geo_zone_spec.rb
erp_base_erp_svcs-3.1.3 spec/models/geo_zone_spec.rb
erp_base_erp_svcs-3.1.2 spec/models/geo_zone_spec.rb
erp_base_erp_svcs-3.1.1 spec/models/geo_zone_spec.rb
erp_base_erp_svcs-3.0.7 spec/models/geo_zone_spec.rb
erp_base_erp_svcs-3.1.0 spec/models/geo_zone_spec.rb
erp_base_erp_svcs-3.0.6 spec/models/geo_zone_spec.rb
erp_base_erp_svcs-3.0.5 spec/models/geo_zone_spec.rb
erp_base_erp_svcs-3.0.4 spec/models/geo_zone_spec.rb
erp_base_erp_svcs-3.0.3 spec/models/geo_zone_spec.rb
erp_base_erp_svcs-3.0.2 spec/models/geo_zone_spec.rb
erp_base_erp_svcs-3.0.1 spec/models/geo_zone_spec.rb
erp_base_erp_svcs-3.0.0 spec/models/geo_zone_spec.rb