Sha256: 7cc5eeed49104c4fd27f05361171f0046cdf6d6136a4f626df89a16151b561d1

Contents?: true

Size: 212 Bytes

Versions: 12

Compression:

Stored size: 212 Bytes

Contents

FactoryGirl.define do
  factory :job_suspend_schedule, class: Kuroko2::JobSuspendSchedule do
    sequence(:cron) do |n|
      hour = n / 60 >= 1 ? (n / 60) : '*'
      "#{n % 60} #{hour} * * *"
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
kuroko2-0.4.2 spec/factories/job_suspend_schedule_factory.rb
kuroko2-0.4.1 spec/factories/job_suspend_schedule_factory.rb
kuroko2-0.4.0 spec/factories/job_suspend_schedule_factory.rb
kuroko2-0.3.4 spec/factories/job_suspend_schedule_factory.rb
kuroko2-0.3.3 spec/factories/job_suspend_schedule_factory.rb
kuroko2-0.3.2 spec/factories/job_suspend_schedule_factory.rb
kuroko2-0.3.1 spec/factories/job_suspend_schedule_factory.rb
kuroko2-0.3.0 spec/factories/job_suspend_schedule_factory.rb
kuroko2-0.2.3 spec/factories/job_suspend_schedule_factory.rb
kuroko2-0.2.2 spec/factories/job_suspend_schedule_factory.rb
kuroko2-0.2.1 spec/factories/job_suspend_schedule_factory.rb
kuroko2-0.2.0 spec/factories/job_suspend_schedule_factory.rb