aboutsummaryrefslogtreecommitdiffstats
path: root/activestorage/test/models/blob_test.rb
diff options
context:
space:
mode:
authorRafael França <rafaelmfranca@gmail.com>2018-01-26 13:15:30 -0500
committerGitHub <noreply@github.com>2018-01-26 13:15:30 -0500
commit85fcb663363cd27220e8bd3136973cc3408cf7d7 (patch)
tree8521ed5477f475e1de8bcb89b689bbd3b1abeae8 /activestorage/test/models/blob_test.rb
parent8baca31dbe522cb407f0b3b8c8d3d4a6804e5aed (diff)
parentfda1863e1a8c120294c56482631d8254ad6125ff (diff)
downloadrails-85fcb663363cd27220e8bd3136973cc3408cf7d7.tar.gz
rails-85fcb663363cd27220e8bd3136973cc3408cf7d7.tar.bz2
rails-85fcb663363cd27220e8bd3136973cc3408cf7d7.zip
Merge pull request #31786 from composerinteralia/respond-to-tests
Use respond_to test helpers
Diffstat (limited to 'activestorage/test/models/blob_test.rb')
-rw-r--r--activestorage/test/models/blob_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activestorage/test/models/blob_test.rb b/activestorage/test/models/blob_test.rb
index b5daee2b57..44b60e5cbb 100644
--- a/activestorage/test/models/blob_test.rb
+++ b/activestorage/test/models/blob_test.rb
@@ -25,8 +25,8 @@ class ActiveStorage::BlobTest < ActiveSupport::TestCase
test "text?" do
blob = create_blob data: "Hello world!"
- assert blob.text?
- assert_not blob.audio?
+ assert_predicate blob, :text?
+ assert_not_predicate blob, :audio?
end
test "download yields chunks" do