Sha256: ffb2bd6d226e6e30a8e4089617744b55d07cbe8cdc1cc4b52b380e09c31dfd8e
Contents?: true
Size: 324 Bytes
Versions: 1
Compression:
Stored size: 324 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 listing.reload end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
approvable-0.0.1 | spec/factories/listing.rb |