Sha256: 76e2635ae28422fec9fcf29bb0ac022a0b1ce29e0a5dfb8483a3785be260ff75
Contents?: true
Size: 713 Bytes
Versions: 3
Compression:
Stored size: 713 Bytes
Contents
#! /usr/bin/env ruby # coding: utf-8 require "helper" #require "test/unit" #require "pkg/klass.rb" class TC_Schedule < Test::Unit::TestCase def setup date = Date.new(2012, 10, 15) @s00 = Sculd::Plan::Schedule.new(date, false, 0, "scheduleA") date = DateTime.new(2012, 10, 15, 23, 45, 0) @s01 = Sculd::Plan::Schedule.new(date, false, 0, "scheduleA") end def test_priority #it 'should return 0' do assert_equal(0, @s00.priority) end def test_event_dates #it 'should return Array of 1 item' do results = @s00.event_dates assert_equal([Date.new(2012, 10, 15)], results) results = @s01.event_dates assert_equal([Date.new(2012, 10, 15)], results) end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
sculd-0.1.2 | test/test_schedule.rb |
sculd-0.1.1 | test/test_schedule.rb |
sculd-0.1.0 | test/test_schedule.rb |