Sha256: 785cc14e41b6ac52794e28b552537538c21915b50cc2d965a2d4d1e341f0ff1b

Contents?: true

Size: 333 Bytes

Versions: 32

Compression:

Stored size: 333 Bytes

Contents

require "test_helper"

class AttachmentTest < ActiveSupport::TestCase
  should "generate a snippet" do
    attachment = Attachment.new(
      title: "Supporting attachment",
      filename: "document.pdf"
    )
    expected_snippet = "[InlineAttachment:document.pdf]"

    assert_equal expected_snippet, attachment.snippet
  end
end

Version data entries

32 entries across 32 versions & 1 rubygems

Version Path
govuk_content_models-13.4.0 test/models/attachment_test.rb
govuk_content_models-13.3.0 test/models/attachment_test.rb
govuk_content_models-13.2.1 test/models/attachment_test.rb
govuk_content_models-13.2.0 test/models/attachment_test.rb
govuk_content_models-13.1.0 test/models/attachment_test.rb
govuk_content_models-13.0.0 test/models/attachment_test.rb
govuk_content_models-12.4.0 test/models/attachment_test.rb
govuk_content_models-12.3.0 test/models/attachment_test.rb
govuk_content_models-12.2.0 test/models/attachment_test.rb
govuk_content_models-12.1.0 test/models/attachment_test.rb
govuk_content_models-12.0.0 test/models/attachment_test.rb
govuk_content_models-11.4.0 test/models/attachment_test.rb
govuk_content_models-11.3.0 test/models/attachment_test.rb
govuk_content_models-11.2.0 test/models/attachment_test.rb
govuk_content_models-11.1.0 test/models/attachment_test.rb
govuk_content_models-11.0.1 test/models/attachment_test.rb
govuk_content_models-11.0.0 test/models/attachment_test.rb
govuk_content_models-10.5.0 test/models/attachment_test.rb
govuk_content_models-10.4.2 test/models/attachment_test.rb
govuk_content_models-10.4.1 test/models/attachment_test.rb