]> git.openstreetmap.org Git - rails.git/blobdiff - vendor/gems/composite_primary_keys-2.2.2/test/test_santiago.rb
Normalise line endings.
[rails.git] / vendor / gems / composite_primary_keys-2.2.2 / test / test_santiago.rb
index 4b5f433e4917e901a30ba4d5f4870e232d6ced2a..771c414a71951b4ba95db21236e311f721ccfd2f 100644 (file)
@@ -1,27 +1,27 @@
-# Test cases devised by Santiago that broke the Composite Primary Keys\r
-# code at one point in time. But no more!!!\r
-\r
-require 'abstract_unit'\r
-require 'fixtures/user'\r
-require 'fixtures/article'\r
-require 'fixtures/reading'\r
-\r
-class TestSantiago < Test::Unit::TestCase\r
-  fixtures :suburbs, :streets, :users, :articles, :readings\r
-  \r
-  def test_normal_and_composite_associations\r
-    assert_not_nil @suburb = Suburb.find(1,1)\r
-    assert_equal 1, @suburb.streets.length\r
-    \r
-    assert_not_nil @street = Street.find(1)\r
-    assert_not_nil @street.suburb\r
-  end\r
-  \r
-  def test_single_keys\r
-    @santiago = User.find(1)\r
-    assert_not_nil @santiago.articles\r
-    assert_equal 2, @santiago.articles.length\r
-    assert_not_nil @santiago.readings\r
-    assert_equal 2, @santiago.readings.length\r
-  end\r
-end\r
+# Test cases devised by Santiago that broke the Composite Primary Keys
+# code at one point in time. But no more!!!
+
+require 'abstract_unit'
+require 'fixtures/user'
+require 'fixtures/article'
+require 'fixtures/reading'
+
+class TestSantiago < Test::Unit::TestCase
+  fixtures :suburbs, :streets, :users, :articles, :readings
+  
+  def test_normal_and_composite_associations
+    assert_not_nil @suburb = Suburb.find(1,1)
+    assert_equal 1, @suburb.streets.length
+    
+    assert_not_nil @street = Street.find(1)
+    assert_not_nil @street.suburb
+  end
+  
+  def test_single_keys
+    @santiago = User.find(1)
+    assert_not_nil @santiago.articles
+    assert_equal 2, @santiago.articles.length
+    assert_not_nil @santiago.readings
+    assert_equal 2, @santiago.readings.length
+  end
+end