Sha256: e65643c6e845636f9e8b75c361780e59cd452183066fed2954a861fc5ca8c656
Contents?: true
Size: 526 Bytes
Versions: 1
Compression:
Stored size: 526 Bytes
Contents
# Read about factories at https://github.com/thoughtbot/factory_girl FactoryGirl.define do factory :change_request, :class => 'Approvable::ChangeRequest' do association :approvable, factory: [:listing, :approved] requested_changes {{title: "new_#{approvable.title}"}} trait :approved do state :approved end trait :pending do state :pending end trait :submitted do state :submitted end trait :rejected do state :rejected end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
approvable-0.0.2 | spec/factories/change_requests.rb |