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

Version Path
fuel-0.4.10 spec/models/fuel/author_spec.rb
fuel-0.4.9 spec/models/fuel/author_spec.rb
fuel-0.4.8 spec/models/fuel/author_spec.rb
fuel-0.4.7 spec/models/fuel/author_spec.rb
fuel-0.4.6 spec/models/fuel/author_spec.rb
fuel-0.4.5 spec/models/fuel/author_spec.rb
fuel-0.4.4 spec/models/fuel/author_spec.rb
fuel-0.4.3 spec/models/fuel/author_spec.rb
fuel-0.4.2 spec/models/fuel/author_spec.rb
fuel-0.4.1 spec/models/fuel/author_spec.rb
fuel-0.3.34 spec/models/fuel/author_spec.rb
fuel-0.3.33 spec/models/fuel/author_spec.rb
fuel-0.3.32 spec/models/fuel/author_spec.rb
fuel-0.3.31 spec/models/fuel/author_spec.rb
fuel-0.3.30 spec/models/fuel/author_spec.rb
fuel-0.3.29 spec/models/fuel/author_spec.rb