diff --git a/app/models/case_study.rb b/app/models/case_study.rb index 0071e6f2e0d..f8ff8c93348 100644 --- a/app/models/case_study.rb +++ b/app/models/case_study.rb @@ -1,6 +1,7 @@ class CaseStudy < Edition include Edition::Searchable + include ::Attachable include Edition::Images include Edition::FactCheckable include Edition::CustomLeadImage diff --git a/test/unit/app/helpers/admin/tabbed_nav_helper_test.rb b/test/unit/app/helpers/admin/tabbed_nav_helper_test.rb index dd8b21dacea..2543787d16a 100644 --- a/test/unit/app/helpers/admin/tabbed_nav_helper_test.rb +++ b/test/unit/app/helpers/admin/tabbed_nav_helper_test.rb @@ -160,7 +160,7 @@ def current_user end test "#secondary_navigation_tabs_items for persisted editions which do not allow attachments" do - %i[case_study fatality_notice speech].each do |type| + %i[fatality_notice speech].each do |type| edition = build_stubbed(type) expected_output = [ diff --git a/test/unit/app/models/case_study_test.rb b/test/unit/app/models/case_study_test.rb index 4a1e2cfa5b1..32a6749d855 100644 --- a/test/unit/app/models/case_study_test.rb +++ b/test/unit/app/models/case_study_test.rb @@ -4,6 +4,8 @@ class CaseStudyTest < ActiveSupport::TestCase include ActionDispatch::TestProcess should_allow_image_attachments + should_be_attachable + should_allow_inline_attachments should_have_custom_lead_image should_protect_against_xss_and_content_attacks_on :case_study, :body