Sha256: 2a71f793e438013281d8213e8c88b3dec4316e16a37cad65973a491a38aac88f
Contents?: true
Size: 367 Bytes
Versions: 16
Compression:
Stored size: 367 Bytes
Contents
require 'spec_helper' module Fuel describe Author, type: :model do subject { build(:author) } it { is_expected.to be_valid } it { is_expected.to validate_presence_of(:first_name) } it { is_expected.to validate_presence_of(:last_name) } it { is_expected.to validate_presence_of(:title) } it { is_expected.to have_many(:posts) } end end
Version data entries
16 entries across 16 versions & 1 rubygems