Ruby on Rails Michael Hartl Failing Test 8.1.1
Hi i'm a Newbie trying really hard to work through Hartls's Tutorial. When I run the test it should pass:

    $ bundle exec rspec spec/

But I get:


    30 examples, 15 failures

    Failed examples:

    rspec ./spec/requests/authentication_pages_spec.rb:10 # Authentication signin page 
    rspec ./spec/requests/authentication_pages_spec.rb:11 # Authentication signin page 
    rspec ./spec/requests/static_pages_spec.rb:10 # Static pages Home page 
    rspec ./spec/requests/static_pages_spec.rb:11 # Static pages Home page 
    rspec ./spec/requests/static_pages_spec.rb:12 # Static pages Home page 
    rspec ./spec/requests/static_pages_spec.rb:18 # Static pages Help page 
    rspec ./spec/requests/static_pages_spec.rb:19 # Static pages Help page 
    rspec ./spec/requests/static_pages_spec.rb:25 # Static pages About page 
    rspec ./spec/requests/static_pages_spec.rb:26 # Static pages About page 
    rspec ./spec/requests/static_pages_spec.rb:32 # Static pages Contact page 
    rspec ./spec/requests/static_pages_spec.rb:33 # Static pages Contact page 
    rspec ./spec/requests/user_pages_spec.rb:11 # User pages profile page 
    rspec ./spec/requests/user_pages_spec.rb:12 # User pages profile page 
    rspec ./spec/requests/user_pages_spec.rb:22 # User pages signup with invalid information      should not create a user
    rspec ./spec/requests/user_pages_spec.rb:35 # User pages signup with valid information should create a user

spec/requests/authentication_pages_spec.rb
    
    require 'spec_helper'

    describe "Authentication" do

    subject { page }

    describe "signin page" do
    before { visit signin_path }

    it { should have_selector('h1',    text: 'Sign in') }
    it { should have_selector('title', text: 'Sign in') }
     end
    end

static_pages_spec.rb

    require 'spec_helper'

    describe "Static pages" do

    subject { page }

    describe "Home page" do
    before { visit root_path }

    it { should have_selector('h1',    text: 'Sample App') }
    it { should have_selector('title', text: full_title('')) }
    it { should_not have_selector 'title', text: '| Home' }
    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

And user_pages_spec.rb

    require 'spec_helper'

    describe "User pages" do

    subject { page }
 
    describe "profile page" do
    let(:user) { FactoryGirl.create(:user) }
    before { visit user_path(user) }

    it { should have_selector('h1',    text: user.name) }
    it { should have_selector('title', text: user.name) }
    end

    describe "signup" do

    before { visit signup_path }

    let(:submit) { "Create my account" }

    describe "with invalid information" do
      it "should not create a user" do
        expect { click_button submit }.not_to change(User, :count)
      end
    end

    describe "with valid information" do
      before do
        fill_in "Name",         with: "Example User"
        fill_in "Email",        with: "user@example.com"
        fill_in "Password",     with: "foobar"
        fill_in "Confirmation", with: "foobar"
      end

      it "should create a user" do
        expect { click_button submit }.to change(User, :count).by(1)
      end
    end
    end
    end

I've tried to follow Hartl as closely as possible but I dontt know where I am going wrong! Any ideas? Remember I'm a Newbie! Thanks.
Ruby on Rails Michael Hartl Failing Test 8.1.1
===

Hi i'm a Newbie trying really hard to work through Hartls's Tutorial. When I run the test it should pass:

    $ bundle exec rspec spec/

But I get:


    30 examples, 15 failures

    Failed examples:

    rspec ./spec/requests/authentication_pages_spec.rb:10 # Authentication signin page 
    rspec ./spec/requests/authentication_pages_spec.rb:11 # Authentication signin page 
    rspec ./spec/requests/static_pages_spec.rb:10 # Static pages Home page 
    rspec ./spec/requests/static_pages_spec.rb:11 # Static pages Home page 
    rspec ./spec/requests/static_pages_spec.rb:12 # Static pages Home page 
    rspec ./spec/requests/static_pages_spec.rb:18 # Static pages Help page 
    rspec ./spec/requests/static_pages_spec.rb:19 # Static pages Help page 
    rspec ./spec/requests/static_pages_spec.rb:25 # Static pages About page 
    rspec ./spec/requests/static_pages_spec.rb:26 # Static pages About page 
    rspec ./spec/requests/static_pages_spec.rb:32 # Static pages Contact page 
    rspec ./spec/requests/static_pages_spec.rb:33 # Static pages Contact page 
    rspec ./spec/requests/user_pages_spec.rb:11 # User pages profile page 
    rspec ./spec/requests/user_pages_spec.rb:12 # User pages profile page 
    rspec ./spec/requests/user_pages_spec.rb:22 # User pages signup with invalid information      should not create a user
    rspec ./spec/requests/user_pages_spec.rb:35 # User pages signup with valid information should create a user

spec/requests/authentication_pages_spec.rb
    
    require 'spec_helper'

    describe "Authentication" do

    subject { page }

    describe "signin page" do
    before { visit signin_path }

    it { should have_selector('h1',    text: 'Sign in') }
    it { should have_selector('title', text: 'Sign in') }
     end
    end

static_pages_spec.rb

    require 'spec_helper'

    describe "Static pages" do

    subject { page }

    describe "Home page" do
    before { visit root_path }

    it { should have_selector('h1',    text: 'Sample App') }
    it { should have_selector('title', text: full_title('')) }
    it { should_not have_selector 'title', text: '| Home' }
    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

And user_pages_spec.rb

    require 'spec_helper'

    describe "User pages" do

    subject { page }
 
    describe "profile page" do
    let(:user) { FactoryGirl.create(:user) }
    before { visit user_path(user) }

    it { should have_selector('h1',    text: user.name) }
    it { should have_selector('title', text: user.name) }
    end

    describe "signup" do

    before { visit signup_path }

    let(:submit) { "Create my account" }

    describe "with invalid information" do
      it "should not create a user" do
        expect { click_button submit }.not_to change(User, :count)
      end
    end

    describe "with valid information" do
      before do
        fill_in "Name",         with: "Example User"
        fill_in "Email",        with: "user@example.com"
        fill_in "Password",     with: "foobar"
        fill_in "Confirmation", with: "foobar"
      end

      it "should create a user" do
        expect { click_button submit }.to change(User, :count).by(1)
      end
    end
    end
    end

I've tried to follow Hartl as closely as possible but I dontt know where I am going wrong! Any ideas? Remember I'm a Newbie! Thanks.