Sha256: 52f57811749ff4c17d6b39fe77a03c9bf01dddad6353a5beed69e8aca46556c5

Contents?: true

Size: 515 Bytes

Versions: 5

Compression:

Stored size: 515 Bytes

Contents

after :users do
  BasicBenchmark.new "Seeding #{Rails.env} Calendars" do
    FactoryGirl.create(
      :calendar,
      name: 'Admin Calendar',
      css_class: 'admin-calendar'
    )
    FactoryGirl.create(
      :calendar,
      name: 'Regular Calendar',
      css_class: 'regular-calendar',
      owner: User.find_by_name('Regular User')
    )
    FactoryGirl.create(
      :calendar,
      name: 'Other Calendar',
      css_class: 'other-calendar',
      owner: User.find_by_name('Other User')
    )
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
date_book-0.0.6 spec/dummy/db/seeds/calendars.seeds.rb
date_book-0.0.5 spec/dummy/db/seeds/calendars.seeds.rb
date_book-0.0.3 spec/dummy/db/seeds/calendars.seeds.rb
date_book-0.0.2 spec/dummy/db/seeds/calendars.seeds.rb
date_book-0.0.1 spec/dummy/db/seeds/calendars.seeds.rb