test/test_schedule.rb in sculd-0.1.3 vs test/test_schedule.rb in sculd-0.2.0

- old
+ new

@@ -4,27 +4,27 @@ 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") + 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 + 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_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) + 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 + results = @s01.event_dates + assert_equal([Date.new(2012, 10, 15)], results) + end end