Sha256: 2c7dd96fde59ffb73603cc1fbed27162a3e0066d754ab9ab3c0e5e0b66e01ca9

Contents?: true

Size: 530 Bytes

Versions: 55

Compression:

Stored size: 530 Bytes

Contents

require 'rails_helper'

describe Pulitzer::PostTypeContentElementType do
  let(:post_type_content_element_type) { build :post_type_content_element_type }

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

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

  describe "ActiveRecord associations" do
    it { should belong_to(:post_type) }
    it { should belong_to(:content_element_type) }
    it { should have_one(:content_element) }
  end
end

Version data entries

55 entries across 55 versions & 1 rubygems

Version Path
pulitzer-0.3.8 spec/models/post_type_content_element_type_spec.rb
pulitzer-0.3.7 spec/models/post_type_content_element_type_spec.rb
pulitzer-0.3.6 spec/models/post_type_content_element_type_spec.rb
pulitzer-0.3.5 spec/models/post_type_content_element_type_spec.rb
pulitzer-0.3.4 spec/models/post_type_content_element_type_spec.rb
pulitzer-0.3.3 spec/models/post_type_content_element_type_spec.rb
pulitzer-0.3.2 spec/models/post_type_content_element_type_spec.rb
pulitzer-0.3.1 spec/models/post_type_content_element_type_spec.rb
pulitzer-0.3.0 spec/models/post_type_content_element_type_spec.rb
pulitzer-0.2.2 spec/models/post_type_content_element_type_spec.rb
pulitzer-0.2.1 spec/models/post_type_content_element_type_spec.rb
pulitzer-0.2.0 spec/models/post_type_content_element_type_spec.rb
pulitzer-0.1.10 spec/models/post_type_content_element_type_spec.rb
pulitzer-0.1.9 spec/models/post_type_content_element_type_spec.rb
pulitzer-0.1.8 spec/models/post_type_content_element_type_spec.rb