Sha256: edd4664fae9c867dfd7f42b3ee070f383f2fbb7da2a84d7fbfe5538bbdd4b1aa
Contents?: true
Size: 348 Bytes
Versions: 1
Compression:
Stored size: 348 Bytes
Contents
FactoryGirl.define do factory :listing do sequence(:title) {|n| "Title #{n}"} sequence(:description) {|n| "A long description #{n}"} trait :approved do after(:create) do |listing| listing.submit_changes listing.approve_changes end end end factory :foobar do json_hash {{}} end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
approvable-0.0.2 | spec/factories/listing.rb |