Sha256: cf234dd45c4963f712064eb710f8b0b020ab88ce62403c7e4132c5e732d6491e

Contents?: true

Size: 251 Bytes

Versions: 637

Compression:

Stored size: 251 Bytes

Contents

describe Caboose::User do
  it "has a valid factory" do
    expect(FactoryGirl.create(:caboose_user)).to be_valid
  end  
  it "is invalid without an email" do
    expect(FactoryGirl.build(:caboose_user, :email => nil)).to_not be_valid
  end    
end

Version data entries

637 entries across 637 versions & 1 rubygems

Version Path
caboose-cms-0.9.229 spec/models/user_spec.rb
caboose-cms-1.0.2 spec/models/user_spec.rb
caboose-cms-1.0.1 spec/models/user_spec.rb
caboose-cms-0.9.228 spec/models/user_spec.rb
caboose-cms-0.9.227 spec/models/user_spec.rb
caboose-cms-0.9.226 spec/models/user_spec.rb
caboose-cms-0.9.225 spec/models/user_spec.rb
caboose-cms-0.9.224 spec/models/user_spec.rb
caboose-cms-0.9.223 spec/models/user_spec.rb
caboose-cms-0.9.222 spec/models/user_spec.rb
caboose-cms-0.9.221 spec/models/user_spec.rb
caboose-cms-0.9.220 spec/models/user_spec.rb
caboose-cms-0.9.219 spec/models/user_spec.rb
caboose-cms-0.9.218 spec/models/user_spec.rb
caboose-cms-0.9.217 spec/models/user_spec.rb
caboose-cms-0.9.216 spec/models/user_spec.rb
caboose-cms-0.9.215 spec/models/user_spec.rb
caboose-cms-0.9.214 spec/models/user_spec.rb
caboose-cms-0.9.213 spec/models/user_spec.rb
caboose-cms-0.9.212 spec/models/user_spec.rb