Sha256: 0aa6dabea7617e69a6a1180b0a330893bd217c8491e5291adeedc3b31010e791

Contents?: true

Size: 572 Bytes

Versions: 24

Compression:

Stored size: 572 Bytes

Contents

require 'spec_helper'

describe 'A post' do
  fixtures :posts

  context 'being viewed by a search engine' do
    before do
      @post = posts(:with_seo)
    end

    it "should contain the SEO fields" do
      visit post_path(@post)
      save_and_open_page
      within('head title') { page.should have_content(@post.seo_title) }
      within('head') do
        page.should have_css("meta[name=\"description\"][content=\"#{@post.seo_description}\"]")
        page.should have_css("meta[name=\"keywords\"][content=\"#{@post.seo_keywords}\"]")
      end
    end
  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
forge-cli-0.0.9 lib/forge/spec/integration/posts_spec.rb
forge-cli-0.0.8 lib/forge/spec/integration/posts_spec.rb
forge-cli-0.0.7 lib/forge/spec/integration/posts_spec.rb
forge-cli-0.0.6 lib/forge/spec/integration/posts_spec.rb