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

Version Path
artfully_ose-1.3.0.pre4 spec/factories/section_factories.rb
artfully_ose-1.3.0.pre3 spec/factories/section_factories.rb
artfully_ose-1.3.0.pre2 spec/factories/section_factories.rb
artfully_ose-1.3.0.pre1 spec/factories/section_factories.rb
artfully_ose-1.2.0 spec/factories/section_factories.rb
artfully_ose-1.2.0.beta.1 spec/factories/section_factories.rb
artfully_ose-1.2.0.alpha.2 spec/factories/section_factories.rb
artfully_ose-1.2.0.alpha.1 spec/factories/section_factories.rb
artfully_ose-1.2.0.pre.27 spec/factories/section_factories.rb
artfully_ose-1.2.0.pre.26 spec/factories/section_factories.rb
artfully_ose-1.2.0.pre.24 spec/factories/section_factories.rb
artfully_ose-1.2.0.pre.23 spec/factories/section_factories.rb
artfully_ose-1.2.0.pre.21 spec/factories/section_factories.rb
artfully_ose-1.2.0.pre.20 spec/factories/section_factories.rb