diff options
author | Yves Senn <yves.senn@gmail.com> | 2014-07-16 08:48:16 +0200 |
---|---|---|
committer | Yves Senn <yves.senn@gmail.com> | 2014-07-16 08:48:16 +0200 |
commit | 6f15762fa601a5e3238888038684aae7446cfc16 (patch) | |
tree | e458f16b8ad43be041b9bb1911571a3475db65e8 /activerecord/test | |
parent | 7880f39e1d82cd4faf3dc61928c22b385ced3d50 (diff) | |
parent | 9c83e8401d802864dde38ddffb690a4245d01716 (diff) | |
download | rails-6f15762fa601a5e3238888038684aae7446cfc16.tar.gz rails-6f15762fa601a5e3238888038684aae7446cfc16.tar.bz2 rails-6f15762fa601a5e3238888038684aae7446cfc16.zip |
Merge pull request #16138 from sgrif/sg-attribute-set-key
AttributeSet#include? -> AttributeSet#key?
Diffstat (limited to 'activerecord/test')
-rw-r--r-- | activerecord/test/cases/attribute_set_test.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/activerecord/test/cases/attribute_set_test.rb b/activerecord/test/cases/attribute_set_test.rb index cdbb11fa32..dc20c3c676 100644 --- a/activerecord/test/cases/attribute_set_test.rb +++ b/activerecord/test/cases/attribute_set_test.rb @@ -88,15 +88,15 @@ module ActiveRecord assert_equal [:foo], attributes.keys end - test "uninitialized attributes return false for include?" do + test "uninitialized attributes return false for key?" do attributes = attributes_with_uninitialized_key - assert attributes.include?(:foo) - assert_not attributes.include?(:bar) + assert attributes.key?(:foo) + assert_not attributes.key?(:bar) end - test "unknown attributes return false for include?" do + test "unknown attributes return false for key?" do attributes = attributes_with_uninitialized_key - assert_not attributes.include?(:wibble) + assert_not attributes.key?(:wibble) end test "fetch_value returns the value for the given initialized attribute" do |