script/console

Summary

Maintainability
Test Coverage
#!/usr/bin/env ruby
# frozen_string_literal: true

require 'bundler/setup'
require 'biz'
require 'irb'

TEST_SCHEDULE = Biz::Schedule.new do |config|
  config.hours = {
    mon: {'09:00' => '12:00', '13:00' => '17:00'},
    tue: {'09:00' => '12:00', '13:00' => '17:00'},
    wed: {'09:00' => '12:00', '13:00' => '17:00'},
    thu: {'09:00' => '12:00', '13:00' => '17:00'},
    fri: {'09:00' => '12:00', '13:00' => '17:00'},
    sat: {'10:00' => '14:00'}
  }

  config.holidays = [Date.new(2014, 1, 1), Date.new(2014, 12, 25)]

  config.time_zone = 'Etc/UTC'
end

IRB.start