Beispiel #1
0
				Expect(err).To(HaveOccurred())
			})
		})
	})

	Describe("updating a task", func() {
		var (
			originalTask transportTask
			expectedTask transportTask

			task   wl.Task
			taskID uint

			title           string
			revision        uint
			assigneeID      uint
			completed       bool
			recurrenceType  string
			recurrenceCount uint
			dueDate         time.Time
			starred         bool

			expectedTaskUpdateConfig oauth.TaskUpdateConfig
		)

		BeforeEach(func() {
			taskID = 1234
			title = "newTaskTitle"
			revision = 23
			assigneeID = uint(2)
			completed = false
Beispiel #2
0
package wl_integration_test

import (
	"time"

	"github.com/nu7hatch/gouuid"
	. "github.com/onsi/ginkgo"
	. "github.com/onsi/gomega"
	"github.com/robdimsdale/wl"
)

var _ = Describe("basic task functionality", func() {
	var (
		newList wl.List
		newTask wl.Task
		err     error
	)

	BeforeEach(func() {
		By("Creating a new list")
		uuid1, err := uuid.NewV4()
		Expect(err).NotTo(HaveOccurred())
		newListTitle := uuid1.String()

		Eventually(func() error {
			newList, err = client.CreateList(newListTitle)
			return err
		}).Should(Succeed())

		By("Creating task in new list")
		uuid, err := uuid.NewV4()