Sha256: f69a6541c7b6ecdbab0c2ba128c451b95adf16bf105e94af9284ce4259c08f1f
Contents?: true
Size: 576 Bytes
Versions: 24
Compression:
Stored size: 576 Bytes
Contents
require 'spec_helper' describe 'A page' do fixtures :all context 'being viewed by a search engine' do before do @page = pages(:with_seo) @page.send(:set_slug_and_path) end it "should contain the SEO fields" do visit @page.path within('head title') { page.should have_content(@page.seo_title) } within('head') do page.should have_css("meta[name=\"description\"][content=\"#{@page.seo_description}\"]") page.should have_css("meta[name=\"keywords\"][content=\"#{@page.seo_keywords}\"]") end end end end
Version data entries
24 entries across 24 versions & 1 rubygems