title: not sure if my test passed capybara rspec devise sign in page factory girl
body: <p>This is my sign_in spec</p>
  
  <pre><code>require 'spec_helper'
  
  describe 'user can sign in' do 
    before(:each) do 
      @user = Factory(:user) 
      visit ('/users/sign_in') do 
        #login_as(@user, :scope =&gt; :user)
        fill_in('Email', :with =&gt; @user.email)
        fill_in('Password', :with =&gt; @user.password)
        click_button('Sign in')
      end 
      expect(page).to have_content 'Signed in successfully'
    end
  end 
  </code></pre>
  
  <p>I am using factory girl to make a test user data. </p>
  
  <p>Here is my factories.rb</p>
  
  <pre><code>FactoryGirl.define do 
    factory :user do 
      email 'yourself@example.com'
      password 'gibberishdotcom'
      password_confirmation 'gibberishdotcom'
    end 
  end 
  </code></pre>
  
  <p>I am using database cleaner to clean out the test environment. </p>
  
  <p>Here is my spec_helper,</p>
  
  <pre><code>require 'simplecov'
  SimpleCov.start
  
  ENV["RAILS_ENV"] ||= 'test'
  require File.expand_path("../../config/environment", __FILE__)
  #require 'rspec/autorun'
  require 'rspec/rails'
  require 'capybara/rspec'
  require 'capybara/rails'
  require 'database_cleaner'
  
  
  include Warden::Test::Helpers 
  Warden.test_mode!
  
  RSpec.configure do |config|
  
    config.include Capybara::DSL
    config.include FactoryGirl::Syntax::Methods
  
    #use database cleaner instead
    config.use_transactional_fixtures = false
  
    config.before(:suite) do 
      DatabaseCleaner.strategy = :transaction
      DatabaseCleaner.clean_with :truncation
    end 
  
    config.before :each do  
      DatabaseCleaner.start 
    end 
  
    config.after :each do 
      DatabaseCleaner.clean
    end 
  end 
  </code></pre>
  
  <p>I am trying to test my devise sign in page.</p>
  
  <p>I am using rails 4 and here are my gems</p>
  
  <pre><code>group :test do
    gem 'rspec-rails', '~&gt; 3.0.1' #bdd testing framework
    gem 'capybara', '~&gt; 2.3.0' #acceptance test framework
    gem 'selenium-webdriver', '~&gt; 2.42.0' #browser automation
    gem "factory_girl_rails", "~&gt; 4.0" #make sample data for tests
    gem 'database_cleaner', '~&gt; 1.3.0' #clean out test db environment
  end
  </code></pre>
  
  <p>when I do rake -t I am getting this my server log</p>
  
  <pre><code>Judys-MacBook-Air:berklee-admissions-portal judyngai$ rake -t
  ** Invoke default (first_time)
  ** Invoke spec (first_time)
  ** Invoke spec:prepare (first_time)
  ** Execute spec:prepare
  ** Invoke test:prepare (first_time)
  ** Execute test:prepare
  ** Execute spec
  /Users/judyngai/.rvm/rubies/ruby-2.1.0/bin/ruby -I/Users/judyngai/.rvm/gems/ruby-2.1.0@berkeleycollegeofmusic/gems/rspec-core-3.0.0/lib:/Users/judyngai/.rvm/gems/ruby-2.1.0@berkeleycollegeofmusic/gems/rspec-support-3.0.0/lib -S /Users/judyngai/.rvm/gems/ruby-2.1.0@berkeleycollegeofmusic/gems/rspec-core-3.0.0/exe/rspec ./spec/controllers/omniauth_callbacks_controller_spec.rb ./spec/features/home_spec.rb ./spec/features/registrations_spec.rb ./spec/features/sign_in_spec.rb
  No examples found.
  
  
  Finished in 0.15487 seconds (files took 2.41 seconds to load)
  0 examples, 0 failures
  Coverage report generated for RSpec to /Users/judyngai/Desktop/berkeleycollegeofmusic/berklee-admissions-portal/coverage. 118 / 158 LOC (74.68%) covered.
  ** Execute default
  </code></pre>
  
  <p>my sign_in_spec.rb is in spec/features</p>
  
  <p>It is loading it, but it's not seeing it.  This is my first time using factory girl. Am I mocking incorrectly? </p>