diff options
Diffstat (limited to 'test')
| -rw-r--r-- | test/unit/event_test.rb | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/test/unit/event_test.rb b/test/unit/event_test.rb index 8d51b1a..78e082c 100644 --- a/test/unit/event_test.rb +++ b/test/unit/event_test.rb | |||
| @@ -52,7 +52,6 @@ class EventTest < ActiveSupport::TestCase | |||
| 52 | assert_equal 1, Occurrence.count | 52 | assert_equal 1, Occurrence.count |
| 53 | assert_equal event.start_time, Occurrence.first.start_time | 53 | assert_equal event.start_time, Occurrence.first.start_time |
| 54 | assert_equal event.end_time, Occurrence.first.end_time | 54 | assert_equal event.end_time, Occurrence.first.end_time |
| 55 | assert_equal @cal_node.head.title, Occurrence.first.summary | ||
| 56 | end | 55 | end |
| 57 | 56 | ||
| 58 | test 'create day event with weekly reoccurrence and checking data' do | 57 | test 'create day event with weekly reoccurrence and checking data' do |
| @@ -76,19 +75,16 @@ class EventTest < ActiveSupport::TestCase | |||
| 76 | 75 | ||
| 77 | assert_equal "2009-12-24T15:23:42".to_time, scoped_occurrences[51].start_time | 76 | assert_equal "2009-12-24T15:23:42".to_time, scoped_occurrences[51].start_time |
| 78 | assert_equal "2009-12-24T20:05:23".to_time, scoped_occurrences[51].end_time | 77 | assert_equal "2009-12-24T20:05:23".to_time, scoped_occurrences[51].end_time |
| 79 | assert_equal "99C3", scoped_occurrences[51].summary | ||
| 80 | assert_equal @cal_node.event, scoped_occurrences[51].event | 78 | assert_equal @cal_node.event, scoped_occurrences[51].event |
| 81 | assert_equal @cal_node, scoped_occurrences[51].node | 79 | assert_equal @cal_node, scoped_occurrences[51].node |
| 82 | 80 | ||
| 83 | assert_equal "2009-03-19T15:23:42".to_time, scoped_occurrences[11].start_time | 81 | assert_equal "2009-03-19T15:23:42".to_time, scoped_occurrences[11].start_time |
| 84 | assert_equal "2009-03-19T20:05:23".to_time, scoped_occurrences[11].end_time | 82 | assert_equal "2009-03-19T20:05:23".to_time, scoped_occurrences[11].end_time |
| 85 | assert_equal "99C3", scoped_occurrences[11].summary | ||
| 86 | assert_equal @cal_node.event, scoped_occurrences[11].event | 83 | assert_equal @cal_node.event, scoped_occurrences[11].event |
| 87 | assert_equal @cal_node, scoped_occurrences[11].node | 84 | assert_equal @cal_node, scoped_occurrences[11].node |
| 88 | 85 | ||
| 89 | assert_equal "2009-01-01T15:23:42".to_time, scoped_occurrences[0].start_time | 86 | assert_equal "2009-01-01T15:23:42".to_time, scoped_occurrences[0].start_time |
| 90 | assert_equal "2009-01-01T20:05:23".to_time, scoped_occurrences[0].end_time | 87 | assert_equal "2009-01-01T20:05:23".to_time, scoped_occurrences[0].end_time |
| 91 | assert_equal "99C3", scoped_occurrences[0].summary | ||
| 92 | assert_equal @cal_node.event, scoped_occurrences[11].event | 88 | assert_equal @cal_node.event, scoped_occurrences[11].event |
| 93 | assert_equal @cal_node, scoped_occurrences[11].node | 89 | assert_equal @cal_node, scoped_occurrences[11].node |
| 94 | end | 90 | end |
