Sha256: aa25e820917139fb444daba415e1513058cd715244566c038186f80499273a45

Contents?: true

Size: 503 Bytes

Versions: 26

Compression:

Stored size: 503 Bytes

Contents

require 'spec_helper'

describe Kuhsaft::PagePart do
  context 'knows its page part types' do
    it 'keeps known page parts as an array' do
      Kuhsaft::PagePart.all.should be_a Array
    end

    it 'references page part types as symbols' do
      Kuhsaft::PagePart.all.should be_all { |p| p.should be_a Symbol }
    end

    it 'can load the corresponding modules' do
      lambda { Kuhsaft::PagePart.all.each { |p| p.to_s.camelize.constantize } }.should_not raise_error NameError
    end
  end
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
kuhsaft-0.2.legacy4 spec/models/page_part_spec.rb
kuhsaft-0.3.4.legacy3 spec/models/page_part_spec.rb
kuhsaft-0.2.legacy3 spec/models/page_part_spec.rb
kuhsaft-0.2.legacy2 spec/models/page_part_spec.rb
kuhsaft-0.2.legacy spec/models/page_part_spec.rb
kuhsaft-0.3.4.legacy2 spec/models/page_part_spec.rb
kuhsaft-0.3.4.legacy spec/models/page_part_spec.rb
kuhsaft-0.3.6 spec/models/page_part_spec.rb
kuhsaft-0.3.5 spec/models/page_part_spec.rb
kuhsaft-0.3.4 spec/models/page_part_spec.rb
kuhsaft-0.3.4.rc2 spec/models/page_part_spec.rb
kuhsaft-0.3.4.rc1 spec/models/page_part_spec.rb
kuhsaft-0.3.3 spec/models/page_part_spec.rb
kuhsaft-0.3.2 spec/models/page_part_spec.rb
kuhsaft-0.2.5 spec/models/page_part_spec.rb
kuhsaft-0.2.4 spec/models/page_part_spec.rb
kuhsaft-0.2.3 spec/models/page_part_spec.rb
kuhsaft-0.3.1 spec/models/page_part_spec.rb
kuhsaft-0.3.0 spec/models/page_part_spec.rb
kuhsaft-0.2.2 spec/models/page_part_spec.rb