]> git.openstreetmap.org Git - rails.git/commitdiff
Some test improvements
authorShaun McDonald <shaun@shaunmcdonald.me.uk>
Tue, 26 May 2009 14:45:30 +0000 (14:45 +0000)
committerShaun McDonald <shaun@shaunmcdonald.me.uk>
Tue, 26 May 2009 14:45:30 +0000 (14:45 +0000)
test/fixtures/countries.yml
test/unit/country_test.rb
test/unit/language_test.rb

index f68d7023a6ab3ab148cce911156f69daa3fb7311..fec13e2965ebabbd7722a0692ee8657c2e88577e 100644 (file)
@@ -1,13 +1,15 @@
 # Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
 
-one:
-  min_lat: 
-  max_lat: 
-  min_lon: 
-  max_lon: 
+gb:
+  code: gb
+  min_lat: 49.9061889648438
+  max_lat: 60.8458099365234
+  min_lon: -8.62355613708496
+  max_lon: 1.75900018215179
 
-two:
-  min_lat: 
-  max_lat: 
-  min_lon: 
-  max_lon: 
+de:
+  code: de
+  min_lat: 47.2757720947266
+  max_lat: 55.0556411743164
+  min_lon: 5.865638256073
+  max_lon: 15.0398902893066
index 2adc9477389709e017752a40ad145ed34cc77441..84bb2c4a18bb71aff1c411d0fc40f623c9d2067e 100644 (file)
@@ -1,8 +1,9 @@
-require 'test_helper'
+require File.dirname(__FILE__) + '/../test_helper'
 
 class CountryTest < ActiveSupport::TestCase
-  # Replace this with your real tests.
-  test "the truth" do
-    assert true
+  fixtures :countries
+  
+  test "country count" do
+    assert_equal 2, Country.count
   end
 end
index a366793ef772f7a12002cbdb6877c5717fc4b346..da30044594899f248b704e644eb96c596bb1a44c 100644 (file)
@@ -1,8 +1,7 @@
-require 'test_helper'
+require File.dirname(__FILE__) + '/../test_helper'
 
 class LanguageTest < ActiveSupport::TestCase
-  # Replace this with your real tests.
-  test "the truth" do
-    assert true
+  test "language count" do
+    assert_equal 2, Language.count
   end
 end