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.11.3 spec/models/post_type_content_element_type_spec.rb
pulitzer-0.11.2 spec/models/post_type_content_element_type_spec.rb
pulitzer-0.11.1 spec/models/post_type_content_element_type_spec.rb
pulitzer-0.11.0 spec/models/post_type_content_element_type_spec.rb
pulitzer-0.10.3 spec/models/post_type_content_element_type_spec.rb
pulitzer-0.10.2 spec/models/post_type_content_element_type_spec.rb
pulitzer-0.10.1 spec/models/post_type_content_element_type_spec.rb
pulitzer-0.10.0 spec/models/post_type_content_element_type_spec.rb
pulitzer-0.5.14 spec/models/post_type_content_element_type_spec.rb
pulitzer-0.5.13 spec/models/post_type_content_element_type_spec.rb
pulitzer-0.5.11 spec/models/post_type_content_element_type_spec.rb
pulitzer-0.5.10 spec/models/post_type_content_element_type_spec.rb
pulitzer-0.5.9 spec/models/post_type_content_element_type_spec.rb
pulitzer-0.5.8 spec/models/post_type_content_element_type_spec.rb
pulitzer-0.5.7 spec/models/post_type_content_element_type_spec.rb
pulitzer-0.5.6 spec/models/post_type_content_element_type_spec.rb
pulitzer-0.5.5 spec/models/post_type_content_element_type_spec.rb
pulitzer-0.5.4 spec/models/post_type_content_element_type_spec.rb
pulitzer-0.5.3 spec/models/post_type_content_element_type_spec.rb
pulitzer-0.5.2 spec/models/post_type_content_element_type_spec.rb