aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorAkira Matsuda <ronnie@dio.jp>2011-07-08 12:20:10 +0900
committerAkira Matsuda <ronnie@dio.jp>2011-07-09 20:14:41 +0900
commit7c921fbf1572698dd9541426b05b70d1c951cbe5 (patch)
treeed5e8450873ef013e3f84797bd74857952b624b1 /activerecord
parentd1545bcf94af287fca1fc34e0f9c7cfda56ff130 (diff)
downloadrails-7c921fbf1572698dd9541426b05b70d1c951cbe5.tar.gz
rails-7c921fbf1572698dd9541426b05b70d1c951cbe5.tar.bz2
rails-7c921fbf1572698dd9541426b05b70d1c951cbe5.zip
formats
Diffstat (limited to 'activerecord')
-rw-r--r--activerecord/test/cases/finder_test.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/activerecord/test/cases/finder_test.rb b/activerecord/test/cases/finder_test.rb
index 8f392609df..3d2a03d2b9 100644
--- a/activerecord/test/cases/finder_test.rb
+++ b/activerecord/test/cases/finder_test.rb
@@ -140,23 +140,23 @@ class FinderTest < ActiveRecord::TestCase
def test_find_with_group
- developers = Developer.find(:all, :group => "salary", :select => "salary")
+ developers = Developer.find(:all, :group => "salary", :select => "salary")
assert_equal 4, developers.size
assert_equal 4, developers.map(&:salary).uniq.size
end
def test_find_with_group_and_having
- developers = Developer.find(:all, :group => "salary", :having => "sum(salary) > 10000", :select => "salary")
+ developers = Developer.find(:all, :group => "salary", :having => "sum(salary) > 10000", :select => "salary")
assert_equal 3, developers.size
assert_equal 3, developers.map(&:salary).uniq.size
- assert developers.all? { |developer| developer.salary > 10000 }
+ assert developers.all? { |developer| developer.salary > 10000 }
end
def test_find_with_group_and_sanitized_having
- developers = Developer.find(:all, :group => "salary", :having => ["sum(salary) > ?", 10000], :select => "salary")
+ developers = Developer.find(:all, :group => "salary", :having => ["sum(salary) > ?", 10000], :select => "salary")
assert_equal 3, developers.size
assert_equal 3, developers.map(&:salary).uniq.size
- assert developers.all? { |developer| developer.salary > 10000 }
+ assert developers.all? { |developer| developer.salary > 10000 }
end
def test_find_with_group_and_sanitized_having_method