Sha256: d1750373c4bad1d5de363aebcb77d6e45ad43b8b486227a6adc209f4f49bfe42

Contents?: true

Size: 1.43 KB

Versions: 2

Compression:

Stored size: 1.43 KB

Contents

require 'spec_helper'

describe "Static pages" do

  subject { page }
  
  it { pending("Static_Pages, waiting revision") }

=begin
  describe "Home page" do
    before { visit root_path }

    it { should have_selector('h1',    text: title()) }
    it { should have_selector('title', text: full_title('')) }
    it { should_not have_selector 'title', text: '| Home' }
    
    describe "for signed-in users" do
      let(:user) { FactoryGirl.create(:user) }
      before do
        FactoryGirl.create(:micropost, user: user, content: "Lorem ipsum")
        FactoryGirl.create(:micropost, user: user, content: "Dolor sit amet")
        sign_in user
        visit root_path
      end

      it "should render the user's feed" do
        user.feed.each do |item|
          page.should have_selector("li##{item.id}", text: item.content)
        end
      end
    end
  end

  describe "Help page" do
    before { visit help_path }

    it { should have_selector('h1',    text: 'Help') }
    it { should have_selector('title', text: full_title('Help')) }
  end

  describe "About page" do
    before { visit about_path }

    it { should have_selector('h1',    text: 'About') }
    it { should have_selector('title', text: full_title('About Us')) }
  end

  describe "Contact page" do
    before { visit contact_path }

    it { should have_selector('h1',    text: 'Contact') }
    it { should have_selector('title', text: full_title('Contact')) }
  end
=end


end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
guara-0.0.3 spec/requests/static_pages_spec.rb
guara-0.0.1.rc spec/requests/static_pages_spec.rb