Sha256: 5cbc2b1cbf9a1cee8728f1ae429823c056f5b67a74071b124f3dba86d4b218a1
Contents?: true
Size: 532 Bytes
Versions: 14
Compression:
Stored size: 532 Bytes
Contents
FactoryGirl.define do factory :section do name "General" capacity 5 storefront true box_office true after(:create) do |section| section.ticket_types << FactoryGirl.create(:ticket_type, :price => 1000, :section => section) end end factory :free_section, :class => Section do name 'Balcony' capacity 5 storefront true box_office true after(:create) do |section| section.ticket_types << FactoryGirl.create(:ticket_type, :price => 0, :section => section) end end end
Version data entries
14 entries across 14 versions & 1 rubygems