diff options
author | Jon Leighton <j@jonathanleighton.com> | 2012-04-22 11:44:55 +0200 |
---|---|---|
committer | Jon Leighton <j@jonathanleighton.com> | 2012-04-25 15:45:06 +0100 |
commit | 618c5fc3c0f4d1d5bee8c8f8e517b6bfacd17dc2 (patch) | |
tree | 96288ff5e39150db9e35e03586dfce4ba006d296 /activerecord/test/cases | |
parent | ef1d1e1492e3c48884f7653103bc9313dd04cfad (diff) | |
download | rails-618c5fc3c0f4d1d5bee8c8f8e517b6bfacd17dc2.tar.gz rails-618c5fc3c0f4d1d5bee8c8f8e517b6bfacd17dc2.tar.bz2 rails-618c5fc3c0f4d1d5bee8c8f8e517b6bfacd17dc2.zip |
Extract deprecated code
Diffstat (limited to 'activerecord/test/cases')
-rw-r--r-- | activerecord/test/cases/base_test.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/activerecord/test/cases/base_test.rb b/activerecord/test/cases/base_test.rb index ef22936e18..024225b813 100644 --- a/activerecord/test/cases/base_test.rb +++ b/activerecord/test/cases/base_test.rb @@ -2087,4 +2087,9 @@ class BasicsTest < ActiveRecord::TestCase assert_equal record, klass.public_send(meth, :foo, :bar) end end + + test "scoped can take a values hash" do + klass = Class.new(ActiveRecord::Base) + assert_equal ['foo'], klass.scoped(select: 'foo').select_values + end end |