Sha256: 6c3eeb429c9c500d57099d5e21e4646ccd0164d95c6b5173458408f9806ef879

Contents?: true

Size: 336 Bytes

Versions: 10

Compression:

Stored size: 336 Bytes

Contents

require 'test_helper'

class CountryTest < ActiveSupport::TestCase
  fixtures :countries, :metro_areas

  def test_should_find_united_states
    country = Country.get(:us)
    assert !country.nil?
  end
  
  def test_should_find_countries_with_metro_areas
    c = Country.find_countries_with_metros
    assert_equal c.size, 3
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
community_engine-3.2.0 test/unit/country_test.rb
community_engine-3.0.0 test/unit/country_test.rb
community_engine-2.3.2 test/unit/country_test.rb
community_engine-2.3.1 test/unit/country_test.rb
community_engine-2.3.0 test/unit/country_test.rb
community_engine-2.1.0 test/unit/country_test.rb
community_engine-2.0.0 test/unit/country_test.rb
community_engine-2.0.0.beta3 test/unit/country_test.rb
community_engine-2.0.0.beta2 test/unit/country_test.rb
community_engine-2.0.0.beta1 test/unit/country_test.rb