Sha256: e7540e3424193b400ca00830766c74f1f9427ec661f2cd573f24967e5dbf10e1

Contents?: true

Size: 256 Bytes

Versions: 11

Compression:

Stored size: 256 Bytes

Contents

Factory.sequence :name_sequence do |n|
  "name #{n}"
end

Factory.define :place do |f|
  f.name { Factory.next :name_sequence }
end

Factory.define :thing do |f|
  f.name { Factory.next :name_sequence }
  f.happy true
  f.age 10
  f.association :place
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
simple_admin-0.7.1 spec/factories.rb
simple_admin-0.6.0 spec/factories.rb
simple_admin-0.5.2 spec/factories.rb
simple_admin-0.5.1 spec/factories.rb
simple_admin-0.5.0 spec/factories.rb
simple_admin-0.4.1 spec/factories.rb
simple_admin-0.4.0 spec/factories.rb
simple_admin-0.3.1 spec/factories.rb
simple_admin-0.3.0 spec/factories.rb
simple_admin-0.2.1 spec/factories.rb
simple_admin-0.1.0 spec/factories.rb