Sha256: 33e6cd9a76e6ee3f34c99f5ba651b0a8499af0bd1be256c52aeac25f60237b11

Contents?: true

Size: 432 Bytes

Versions: 19

Compression:

Stored size: 432 Bytes

Contents

require 'rails_helper'

describe Pulitzer::PostTag do
  let(:post_tag) { build :post_tag }

  it 'has a valid factory' do
    expect(post_tag).to be_valid
  end

  describe "Active Model validations" do
    it { should validate_presence_of(:version) }
    it { should validate_presence_of(:label) }
  end

  describe "ActiveRecord associations" do
    it { should belong_to(:version) }
    it { should belong_to(:label) }
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
pulitzer-0.15.31 spec/models/post_tag_spec.rb
pulitzer-0.15.30 spec/models/post_tag_spec.rb
pulitzer-0.15.29 spec/models/post_tag_spec.rb
pulitzer-0.15.28 spec/models/post_tag_spec.rb
pulitzer-0.15.27 spec/models/post_tag_spec.rb
pulitzer-0.15.26 spec/models/post_tag_spec.rb
pulitzer-0.15.25 spec/models/post_tag_spec.rb
pulitzer-0.15.24 spec/models/post_tag_spec.rb
pulitzer-0.15.23 spec/models/post_tag_spec.rb
pulitzer-0.15.22 spec/models/post_tag_spec.rb
pulitzer-0.15.21 spec/models/post_tag_spec.rb
pulitzer-0.15.20 spec/models/post_tag_spec.rb
pulitzer-0.15.19 spec/models/post_tag_spec.rb
pulitzer-0.15.18 spec/models/post_tag_spec.rb
pulitzer-0.15.17 spec/models/post_tag_spec.rb
pulitzer-0.15.16 spec/models/post_tag_spec.rb
pulitzer-0.15.15 spec/models/post_tag_spec.rb
pulitzer-0.15.14 spec/models/post_tag_spec.rb
pulitzer-0.15.13 spec/models/post_tag_spec.rb