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.4.0 spec/factories/component.rb
noodall-core-0.3.12 spec/factories/component.rb
noodall-core-0.3.11 spec/factories/component.rb
noodall-core-0.3.10 spec/factories/component.rb
noodall-core-0.3.9 spec/factories/component.rb
noodall-core-0.3.8 spec/factories/component.rb
noodall-core-0.3.7 spec/factories/component.rb
noodall-core-0.3.6 spec/factories/component.rb
noodall-core-0.3.5 spec/factories/component.rb
noodall-core-0.3.4 spec/factories/component.rb
noodall-core-0.3.3 spec/factories/component.rb
noodall-core-0.3.2 spec/factories/component.rb
noodall-core-0.3.1 spec/factories/component.rb
noodall-core-0.3.0 spec/factories/component.rb
noodall-core-0.2.1 spec/factories/component.rb
noodall-core-0.2.0 spec/factories/component.rb
noodall-core-0.1.4 spec/factories/component.rb
noodall-core-0.1.3 spec/factories/component.rb
noodall-core-0.1.2 spec/factories/component.rb
noodall-core-0.1.1 spec/factories/component.rb