Sha256: 49d3033146ef800575958377bf01c4de5f2735c06072d0cf866a5adff31be9cd

Contents?: true

Size: 365 Bytes

Versions: 41

Compression:

Stored size: 365 Bytes

Contents

# A Dummy slot for tests
class Content < Noodall::Component
  key :title, String
  key :url, String
  key :url_text, String

  allowed_positions :small, :wide
end

# And a factory to build it
Factory.define :content do |component|
  component.title { Faker::Lorem.words(4).join('') }
  component.url { 'http://www.google.com' }
  component.url_text { 'More' }
end

Version data entries

41 entries across 41 versions & 1 rubygems

Version Path
noodall-core-0.7.5 spec/factories/component.rb
noodall-core-0.7.3 spec/factories/component.rb
noodall-core-0.7.2 spec/factories/component.rb
noodall-core-0.6.3 spec/factories/component.rb
noodall-core-0.6.2 spec/factories/component.rb
noodall-core-0.6.1 spec/factories/component.rb
noodall-core-0.5.7 spec/factories/component.rb
noodall-core-0.6.0 spec/factories/component.rb
noodall-core-0.5.6 spec/factories/component.rb
noodall-core-0.5.5 spec/factories/component.rb
noodall-core-0.5.4 spec/factories/component.rb
noodall-core-0.5.3 spec/factories/component.rb
noodall-core-0.5.1 spec/factories/component.rb
noodall-core-0.5.0 spec/factories/component.rb
noodall-core-0.4.8 spec/factories/component.rb
noodall-core-0.4.7 spec/factories/component.rb
noodall-core-0.4.6 spec/factories/component.rb
noodall-core-0.4.5 spec/factories/component.rb
noodall-core-0.4.3 spec/factories/component.rb
noodall-core-0.4.2 spec/factories/component.rb