Sha256: 7a786d35e387ca8b06a2283471e7d9d8f4ad0149c8281b53345ddf1ce50bb11a
Contents?: true
Size: 528 Bytes
Versions: 6
Compression:
Stored size: 528 Bytes
Contents
require 'test_helper' module Workarea class GenerateContentBlogMetadataTest < TestCase def test_generate_metadata_for_blog blog = create_blog(name: 'foo') content = Content.for(blog) content.update!(automate_metadata: true) content.blocks.create!(type: 'html', data: { html: '<p>Lorem ipsum dolor</p>' }) GenerateContentMetadata.new.perform assert_equal('foo', content.reload.browser_title) assert_equal('Lorem ipsum dolor', content.reload.meta_description) end end end
Version data entries
6 entries across 6 versions & 1 rubygems