aboutsummaryrefslogtreecommitdiffstats
path: root/test/attachments_test.rb
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2017-07-06 12:22:44 +0200
committerDavid Heinemeier Hansson <david@loudthinking.com>2017-07-06 12:22:44 +0200
commit35d5bddabcd8f0eccc7de3ddf60431ea196508a1 (patch)
treeae57c818c471e2d1c0fe322f5d8448df039bfb63 /test/attachments_test.rb
parentb3a9f3556dedb80cfa6336e6241d933baeb4f906 (diff)
downloadrails-35d5bddabcd8f0eccc7de3ddf60431ea196508a1.tar.gz
rails-35d5bddabcd8f0eccc7de3ddf60431ea196508a1.tar.bz2
rails-35d5bddabcd8f0eccc7de3ddf60431ea196508a1.zip
Rename from Site to Service now that we're called Active Storage
Diffstat (limited to 'test/attachments_test.rb')
-rw-r--r--test/attachments_test.rb12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/attachments_test.rb b/test/attachments_test.rb
index 6e25002bb1..33bbff716d 100644
--- a/test/attachments_test.rb
+++ b/test/attachments_test.rb
@@ -36,7 +36,7 @@ class ActiveStorage::AttachmentsTest < ActiveSupport::TestCase
@user.avatar.purge
assert_not @user.avatar.attached?
- assert_not ActiveStorage::Blob.site.exist?(avatar_key)
+ assert_not ActiveStorage::Blob.service.exist?(avatar_key)
end
test "purge attached blob later when the record is destroyed" do
@@ -47,7 +47,7 @@ class ActiveStorage::AttachmentsTest < ActiveSupport::TestCase
@user.destroy
assert_nil ActiveStorage::Blob.find_by(key: avatar_key)
- assert_not ActiveStorage::Blob.site.exist?(avatar_key)
+ assert_not ActiveStorage::Blob.service.exist?(avatar_key)
end
end
@@ -74,8 +74,8 @@ class ActiveStorage::AttachmentsTest < ActiveSupport::TestCase
@user.highlights.purge
assert_not @user.highlights.attached?
- assert_not ActiveStorage::Blob.site.exist?(highlight_keys.first)
- assert_not ActiveStorage::Blob.site.exist?(highlight_keys.second)
+ assert_not ActiveStorage::Blob.service.exist?(highlight_keys.first)
+ assert_not ActiveStorage::Blob.service.exist?(highlight_keys.second)
end
test "purge attached blobs later when the record is destroyed" do
@@ -86,10 +86,10 @@ class ActiveStorage::AttachmentsTest < ActiveSupport::TestCase
@user.destroy
assert_nil ActiveStorage::Blob.find_by(key: highlight_keys.first)
- assert_not ActiveStorage::Blob.site.exist?(highlight_keys.first)
+ assert_not ActiveStorage::Blob.service.exist?(highlight_keys.first)
assert_nil ActiveStorage::Blob.find_by(key: highlight_keys.second)
- assert_not ActiveStorage::Blob.site.exist?(highlight_keys.second)
+ assert_not ActiveStorage::Blob.service.exist?(highlight_keys.second)
end
end
end