diff options
author | Sean Griffin <sean@thoughtbot.com> | 2014-07-11 07:50:16 -0600 |
---|---|---|
committer | Sean Griffin <sean@thoughtbot.com> | 2014-07-11 07:50:16 -0600 |
commit | 9c83e8401d802864dde38ddffb690a4245d01716 (patch) | |
tree | 8b6115712303cb5529337568c8110b71abce04ac /activerecord/test | |
parent | fe6715ea0d6c4ecc6e9f02062889cf2ad998b2b4 (diff) | |
download | rails-9c83e8401d802864dde38ddffb690a4245d01716.tar.gz rails-9c83e8401d802864dde38ddffb690a4245d01716.tar.bz2 rails-9c83e8401d802864dde38ddffb690a4245d01716.zip |
AttributeSet#include? -> AttributeSet#key?
https://github.com/rails/rails/pull/15868/files#r14135210
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 |