diff options
author | Tarmo Tänav <tarmo@itech.ee> | 2008-05-26 01:28:56 +0300 |
---|---|---|
committer | Pratik Naik <pratiknaik@gmail.com> | 2008-05-26 00:45:42 +0100 |
commit | c5d37c0662a65ce9723d668f57b59457e79ee5ca (patch) | |
tree | 61c6aba0f774509405b22b41912593f2c1a0e489 /activerecord/test/cases/finder_test.rb | |
parent | f88267d532ecbfebb66b95863a4875b65507ddf3 (diff) | |
download | rails-c5d37c0662a65ce9723d668f57b59457e79ee5ca.tar.gz rails-c5d37c0662a65ce9723d668f57b59457e79ee5ca.tar.bz2 rails-c5d37c0662a65ce9723d668f57b59457e79ee5ca.zip |
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 <pratiknaik@gmail.com>
Diffstat (limited to 'activerecord/test/cases/finder_test.rb')
-rw-r--r-- | activerecord/test/cases/finder_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/finder_test.rb b/activerecord/test/cases/finder_test.rb index 5c0f0e2ef1..80936d51f3 100644 --- a/activerecord/test/cases/finder_test.rb +++ b/activerecord/test/cases/finder_test.rb @@ -867,7 +867,7 @@ class FinderTest < ActiveRecord::TestCase end def test_with_limiting_with_custom_select - posts = Post.find(:all, :include => :author, :select => ' posts.*, authors.id as "author_id"', :limit => 3) + posts = Post.find(:all, :include => :author, :select => ' posts.*, authors.id as "author_id"', :limit => 3, :order => 'posts.id') assert_equal 3, posts.size assert_equal [0, 1, 1], posts.map(&:author_id).sort end |