Sha256: 0c5486419c8caa10545e2fc2a97d874e5ca9fae95f6ce4b4966d98116d400eb6
Contents?: true
Size: 1.04 KB
Versions: 1
Compression:
Stored size: 1.04 KB
Contents
require 'test_helper' class SeoTest < ActionView::TestCase test "populate meta using the path of the template as key" do render template: 'pages/index', layout: 'layouts/application' assert_select 'title', I18n.t('pages.index.title') assert_select %Q{meta[content="#{I18n.t('pages.index.description')}"]} assert_select %Q{meta[content="#{I18n.t('pages.index.keywords')}"]} render template: 'pages/variable', layout: 'layouts/application' assert_select 'title', I18n.t('pages.variable.title', name: 'other') assert_select %Q{meta[content="#{I18n.t('pages.variable.description', name: 'other')}"]} assert_select %Q{meta[content="#{I18n.t('pages.variable.keywords', name: 'other')}"]} render template: 'pages/empty', layout: 'layouts/application' assert_select 'title', '' assert_select %Q{meta[content=""]}, 2 render template: 'pages/defined', layout: 'layouts/application' assert_select 'title', 'title' assert_select %Q{meta[content="description"]} assert_select %Q{meta[content="keywords"]} end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
tuning-0.2.3 | test/seo_test.rb |