Skip to content

Commit

Permalink
Tests passing now
Browse files Browse the repository at this point in the history
  • Loading branch information
craigburke committed May 17, 2013
1 parent 3fbfe10 commit f723e1b
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions test/unit/com/craigburke/EventServiceSpec.groovy
Expand Up @@ -272,7 +272,6 @@ class EventServiceSpec extends UnitSpec {
occurenceStartTime << [mondayNextWeek.withTime(0, 0, 0, 0).toDate(), mondayNextWeek.plusWeeks(1).withTime(0, 0, 0, 0).toDate()]
}

@IgnoreRest
def "delete an individual instance of a repeating event"() {
def event = new Event(
title: 'Repeating Daily Event',
Expand All @@ -295,9 +294,6 @@ class EventServiceSpec extends UnitSpec {
occurenceStartTime << [mondayNextWeek.withTime(0, 0, 0, 0).toDate(), mondayNextWeek.plusWeeks(1).withTime(0, 0, 0, 0).toDate()]
}



@IgnoreRest
def "delete all following instances of a repeating event"() {
def event = new Event(
title: 'Repeating Daily Event',
Expand All @@ -310,11 +306,11 @@ class EventServiceSpec extends UnitSpec {
).save(flush: true)

when:
def result = service.deleteEvent(event, EventRecurActionType.OCCURRENCE, occurenceStartTime)
def result = service.deleteEvent(event, EventRecurActionType.FOLLOWING, occurenceStartTime)

then:
result.error == null
event.recurUntil = new DateTime(occurenceStartTime).withTime(0, 0, 0, 0).toDate()
event.recurUntil == new DateTime(occurenceStartTime).withTime(0, 0, 0, 0).toDate()

where:
occurenceStartTime << [mondayNextWeek.withTime(0, 0, 0, 0).toDate(), mondayNextWeek.plusWeeks(1).withTime(0, 0, 0, 0).toDate()]
Expand Down

0 comments on commit f723e1b

Please sign in to comment.