aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel
diff options
context:
space:
mode:
authorDaniel Colson <danieljamescolson@gmail.com>2018-01-24 22:04:11 -0500
committerDaniel Colson <danieljamescolson@gmail.com>2018-01-25 23:32:58 -0500
commit211adb47e76b358ea15a3f756431c042ab231c23 (patch)
treef688daea11af3dce588e3c5a9791722a2f3aaec5 /activemodel
parent0d50cae996c51630361e8514e1f168b0c48957e1 (diff)
downloadrails-211adb47e76b358ea15a3f756431c042ab231c23.tar.gz
rails-211adb47e76b358ea15a3f756431c042ab231c23.tar.bz2
rails-211adb47e76b358ea15a3f756431c042ab231c23.zip
Change refute to assert_not
Diffstat (limited to 'activemodel')
-rw-r--r--activemodel/test/cases/attribute_test.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/activemodel/test/cases/attribute_test.rb b/activemodel/test/cases/attribute_test.rb
index 14d86cef97..47ca495a01 100644
--- a/activemodel/test/cases/attribute_test.rb
+++ b/activemodel/test/cases/attribute_test.rb
@@ -187,7 +187,7 @@ module ActiveModel
test "an attribute is not changed if it hasn't been assigned or mutated" do
attribute = Attribute.from_database(:foo, 1, Type::Value.new)
- refute attribute.changed?
+ assert_not attribute.changed?
end
test "an attribute is changed if it's been assigned a new value" do
@@ -201,7 +201,7 @@ module ActiveModel
attribute = Attribute.from_database(:foo, 1, Type::Value.new)
unchanged = attribute.with_value_from_user(1)
- refute unchanged.changed?
+ assert_not unchanged.changed?
end
test "an attribute can not be mutated if it has not been read,
@@ -226,7 +226,7 @@ module ActiveModel
forgotten = changed.forgetting_assignment
assert changed.changed? # sanity check
- refute forgotten.changed?
+ assert_not forgotten.changed?
end
test "with_value_from_user validates the value" do