Sha256: a4898734ebbd9c31cf0c1088d71845b00d2d2b41413aaaa2d39740315e8f4c93

Contents?: true

Size: 443 Bytes

Versions: 1

Compression:

Stored size: 443 Bytes

Contents

require 'helper'

class TestLotusNotesCalendar < Test::Unit::TestCase
  
  should "get current events" do
    calendar = LotusNotesCalendar::Calendar.new("https://harmony.mcsc.k12.in.us/msstudent.nsf/school+calendar")
    results = calendar.where
    assert_equal 26, results.count
    assert_equal "7th Gr. First Football Practice - 9-11am", results[0].text
    assert_equal "Monday, Aug  1", results[0].at.strftime('%A, %b %e')
  end
  
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
lotus_notes_calendar-0.0.1.pre test/test_lotus_notes_calendar.rb