Sha256: ad8bd34852f8bb1802824e47d380f53a29b0a84ef1a1ff2594292ec12d5adfa9
Contents?: true
Size: 490 Bytes
Versions: 81
Compression:
Stored size: 490 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_id) } it { should validate_presence_of(:label_id) } it { should validate_presence_of(:label_type) } end describe "ActiveRecord associations" do it { should belong_to(:version) } it { should belong_to(:label) } end end
Version data entries
81 entries across 81 versions & 1 rubygems