diff options
author | Yumin Wong <itsbagpack@github.com> | 2018-09-06 12:48:50 -0500 |
---|---|---|
committer | Yumin Wong <itsbagpack@github.com> | 2018-09-06 12:48:50 -0500 |
commit | 0a1567793b556c50ae775128a75a96c2b929fb4d (patch) | |
tree | af6fbfc235ace2a196f1ce5092134e8b9d277fe9 /activesupport | |
parent | 3f5bd11ed651cef4f098c1d9dba16fe099e89a42 (diff) | |
download | rails-0a1567793b556c50ae775128a75a96c2b929fb4d.tar.gz rails-0a1567793b556c50ae775128a75a96c2b929fb4d.tar.bz2 rails-0a1567793b556c50ae775128a75a96c2b929fb4d.zip |
Use assert_predicate instead
Co-authored-by: no-itsbackpack <no-itsbackpack@github.com>
Diffstat (limited to 'activesupport')
-rw-r--r-- | activesupport/test/safe_buffer_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activesupport/test/safe_buffer_test.rb b/activesupport/test/safe_buffer_test.rb index bf661a5f92..70dec6b3d2 100644 --- a/activesupport/test/safe_buffer_test.rb +++ b/activesupport/test/safe_buffer_test.rb @@ -153,13 +153,13 @@ class SafeBufferTest < ActiveSupport::TestCase test "Should continue safe on slice" do x = "<div>foo</div>".html_safe - assert x.html_safe?, "should be safe" + assert_predicate x, :html_safe? # getting a slice of it y = x[0..-1] # should still be safe - assert y.html_safe?, "should be safe" + assert_predicate y, :html_safe? end test "Should work with interpolation (array argument)" do |