<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -30,8 +30,8 @@ class PostgresqlDataTypeTest &lt; ActiveRecord::TestCase
     @connection.execute(&quot;INSERT INTO postgresql_arrays (commission_by_quarter, nicknames) VALUES ( '{35000,21000,18000,17000}', '{foo,bar,baz}' )&quot;)
     @first_array = PostgresqlArray.find(1)
 
-    @connection.execute(&quot;INSERT INTO postgresql_moneys (wealth) VALUES ('$567.89')&quot;)
-    @connection.execute(&quot;INSERT INTO postgresql_moneys (wealth) VALUES ('-$567.89')&quot;)
+    @connection.execute(&quot;INSERT INTO postgresql_moneys (wealth) VALUES ('567.89'::money)&quot;)
+    @connection.execute(&quot;INSERT INTO postgresql_moneys (wealth) VALUES ('-567.89'::money)&quot;)
     @first_money = PostgresqlMoney.find(1)
     @second_money = PostgresqlMoney.find(2)
 
@@ -143,11 +143,11 @@ class PostgresqlDataTypeTest &lt; ActiveRecord::TestCase
   end
 
   def test_update_money
-    new_value = 123.45
+    new_value = BigDecimal.new('123.45')
     assert @first_money.wealth = new_value
     assert @first_money.save
     assert @first_money.reload
-    assert_equal @first_money.wealth, new_value
+    assert_equal new_value, @first_money.wealth
   end
 
   def test_update_number</diff>
      <filename>activerecord/test/cases/datatype_test_postgresql.rb</filename>
    </modified>
    <modified>
      <diff>@@ -867,7 +867,7 @@ class FinderTest &lt; ActiveRecord::TestCase
   end
 
   def test_with_limiting_with_custom_select
-    posts = Post.find(:all, :include =&gt; :author, :select =&gt; ' posts.*, authors.id as &quot;author_id&quot;', :limit =&gt; 3)
+    posts = Post.find(:all, :include =&gt; :author, :select =&gt; ' posts.*, authors.id as &quot;author_id&quot;', :limit =&gt; 3, :order =&gt; 'posts.id')
     assert_equal 3, posts.size
     assert_equal [0, 1, 1], posts.map(&amp;:author_id).sort
   end</diff>
      <filename>activerecord/test/cases/finder_test.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>f88267d532ecbfebb66b95863a4875b65507ddf3</id>
    </parent>
  </parents>
  <author>
    <name>Tarmo T&#228;nav</name>
    <email>tarmo@itech.ee</email>
  </author>
  <url>http://github.com/rails/rails/commit/c5d37c0662a65ce9723d668f57b59457e79ee5ca</url>
  <id>c5d37c0662a65ce9723d668f57b59457e79ee5ca</id>
  <committed-date>2008-05-25T16:45:42-07:00</committed-date>
  <authored-date>2008-05-25T15:28:56-07:00</authored-date>
  <message>Fix tests for postgres 8.3.x

Made test_with_limiting_with_custom_select not dependent on database
default order. Fixed tests with non-US monetary locale. The monetary
type is fixed precision so it should not expect the database to
return a float.

Signed-off-by: Pratik Naik &lt;pratiknaik@gmail.com&gt;</message>
  <tree>61c6aba0f774509405b22b41912593f2c1a0e489</tree>
  <committer>
    <name>Pratik Naik</name>
    <email>pratiknaik@gmail.com</email>
  </committer>
</commit>
