blob: eba39e0aecfe3292407d913c397adb792670d2d0 [file] [log] [blame]
package data_test
import (
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
"testing"
"github.com/30x/apid-core"
"github.com/30x/apid-core/factory"
"io/ioutil"
"os"
)
var tmpDir string
var _ = BeforeSuite(func() {
apid.Initialize(factory.DefaultServicesFactory())
var err error
config := apid.Config()
tmpDir, err = ioutil.TempDir("", "apid_test")
Expect(err).NotTo(HaveOccurred())
config.Set("local_storage_path", tmpDir)
})
var _ = AfterSuite(func() {
os.RemoveAll(tmpDir)
})
func TestEvents(t *testing.T) {
RegisterFailHandler(Fail)
RunSpecs(t, "Data Suite")
}