Sha256: 31ec509a929f63a1e4e389616342d05048a612848d547acf0f2eea9e5660f828

Contents?: true

Size: 721 Bytes

Versions: 7

Compression:

Stored size: 721 Bytes

Contents

require 'spec_helper'

describe Rearview::User do
  describe 'factory' do
    it 'should be valid' do
      expect { FactoryGirl.create(:user) }.not_to raise_error
      expect( FactoryGirl.create(:user).valid? ).to be_true
    end
  end
  describe 'validations' do
    # let!(:first_user) { FactoryGirl.build(:user) }
    # pending { should validate_presence_of(:email) }
    # pending { should validate_uniqueness_of(:email) }
    # pending { should_not allow_value("this is not an email address").for(:email) }
    # pending("requires a hungrymachine.com email address") { should_not allow_value("user@example.com").for(:email) }
    # pending { should allow_value("example@hungrymachine.com").for(:email) }
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
rearview-1.0.1-jruby spec/models/user_spec.rb
rearview-1.0.0-jruby spec/models/user_spec.rb
rearview-1.0.0.rc5-jruby spec/models/user_spec.rb
rearview-1.0.0.rc4-jruby spec/models/user_spec.rb
rearview-1.0.0.rc3-jruby spec/models/user_spec.rb
rearview-1.0.0.rc2-jruby spec/models/user_spec.rb
rearview-1.0.0.rc1-jruby spec/models/user_spec.rb