aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/finder_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activerecord/test/finder_test.rb')
-rw-r--r--activerecord/test/finder_test.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/activerecord/test/finder_test.rb b/activerecord/test/finder_test.rb
index 61400f2772..2f23503ce1 100644
--- a/activerecord/test/finder_test.rb
+++ b/activerecord/test/finder_test.rb
@@ -93,6 +93,10 @@ class FinderTest < Test::Unit::TestCase
Topic.find(2).parent
end
+
+ def test_find_only_some_columns
+ assert_raises(NoMethodError) { Topic.find(1, :select => "author_name").title }
+ end
def test_find_on_conditions
assert Topic.find(1, :conditions => "approved = 0")