Sha256: de03a12d75606a6647fd37b5850c28b2f807d9076224c9cd43c25e1a6594aa7f
Contents?: true
Size: 433 Bytes
Versions: 9
Compression:
Stored size: 433 Bytes
Contents
require 'rails_helper' module Logistics module Core RSpec.describe Client, type: :model do it 'has a valid factory' do expect(create(:client)).to be_valid end it 'is invalid with no name' do expect(build(:client, name: nil)).not_to be_valid end it 'is invalid with invalid email' do expect(build(:client, email: '123456.com')).not_to be_valid end end end end
Version data entries
9 entries across 9 versions & 1 rubygems