title: Ruby on Rails error when testing for validations
body: <p>So I am currently following this <a href="https://www.youtube.com/watch?v=NBfD7ZPnpo8&amp;index=5&amp;list=PLY_TsbWXHC0IaIWdnQwkLRdg9pXsyY_pW" rel="nofollow">tutorial</a> and on the 5th episode I have followed the directions and updated the syntax for Rails 4.1.6 that I am using with the new Gems. My code is on <a href="https://github.com/nikeshashar/saas" rel="nofollow">Github</a></p>
  
  <p>My Gemfile:</p>
  
  <pre><code>source 'https://rubygems.org'
  
  gem 'rails', '4.1.6'
  gem 'pg'
  
  gem 'sass-rails', '~&gt; 4.0.3'
  gem 'uglifier', '&gt;= 1.3.0'
  gem 'coffee-rails', '~&gt; 4.0.0'
  gem 'jquery-rails'
  gem 'spring',        group: :development
  gem 'bootstrap-sass'
  gem 'autoprefixer-rails'
  gem 'simple_form'
  gem 'devise'
  
  group :development, :test do 
    gem 'guard'
    gem 'guard-livereload'
    gem 'guard-rspec'
    gem 'rspec-rails'
    gem 'rspec-collection_matchers'
    gem 'capybara'
    gem 'factory_girl_rails'
    gem 'launchy'
    gem 'database_cleaner'
    gem 'shoulda-matchers'
    gem 'warden'
  end
  </code></pre>
  
  <p>My spec/models/user_spec.rb has the following:</p>
  
  <pre><code>require 'rails_helper'
  
  describe Account do 
  
    describe 'validations' do 
      it { should validate_presence_of (:name)}
      it { should validate_presence_of (:email)}
      it { should validate_presence_of (:password)}
    end
  
    describe 'associations' do 
    end
  
  end
  </code></pre>
  
  <p>My app/models/user.rb has:</p>
  
  <pre><code>class User &lt; ActiveRecord::Base
    devise :database_authenticatable, :recoverable, :rememberable, :validatable
  
    validates :name, presence: true
  
  end
  </code></pre>
  
  <p>And when running RSpec I get the following errors: </p>
  
  <pre><code>Account
    validations
      should require name to be set (FAILED - 1)
      should require email to be set (FAILED - 2)
      should require password to be set (FAILED - 3)
  
  Failures:
  
    1) Account validations should require name to be set
       Failure/Error: it { should validate_presence_of (:name)}
       NoMethodError:
         undefined method `name=' for #&lt;Account:0x00000108092050&gt;
       # ./spec/models/user_spec.rb:6:in `block (3 levels) in &lt;top (required)&gt;'
  
    2) Account validations should require email to be set
       Failure/Error: it { should validate_presence_of (:email)}
       NoMethodError:
         undefined method `email=' for #&lt;Account:0x00000108088640&gt;
       # ./spec/models/user_spec.rb:7:in `block (3 levels) in &lt;top (required)&gt;'
  
    3) Account validations should require password to be set
       Failure/Error: it { should validate_presence_of (:password)}
       NoMethodError:
         undefined method `password=' for #&lt;Account:0x00000108079af0&gt;
       # ./spec/models/user_spec.rb:8:in `block (3 levels) in &lt;top (required)&gt;'
  </code></pre>
  
  <p>Been stuck on this for a while now and cannot figure out what else I need to check. Any ideas would be a great help. </p>
  
  <p>Thanks!</p>