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