summaryrefslogtreecommitdiff
path: root/test/models
diff options
context:
space:
mode:
authorerdgeist <erdgeist@erdgeist.org>2026-07-21 22:28:18 +0200
committererdgeist <erdgeist@erdgeist.org>2026-07-21 22:28:18 +0200
commit9c951f3a0f379b0f459988106cf3f839acdadbe2 (patch)
treead51cb1700689bfa0915a1319576412d68f66150 /test/models
parent987c8224c7f1bafb84d5e284ff0093921b92f1a0 (diff)
More PDF headline eligibility
Diffstat (limited to 'test/models')
-rw-r--r--test/models/asset_test.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/models/asset_test.rb b/test/models/asset_test.rb
index d246abe..cda0a04 100644
--- a/test/models/asset_test.rb
+++ b/test/models/asset_test.rb
@@ -41,4 +41,9 @@ class AssetTest < ActiveSupport::TestCase
41 test "license_key may be blank" do 41 test "license_key may be blank" do
42 assert Asset.new(:license_key => nil).valid? 42 assert Asset.new(:license_key => nil).valid?
43 end 43 end
44
45 test "pdf? is true only for application/pdf" do
46 assert Asset.new(:upload_content_type => "application/pdf").pdf?
47 assert_not Asset.new(:upload_content_type => "image/png").pdf?
48 end
44end 49end