Expect(mountpoint).To(Equal("/some/graph/driver/mount/point")) Expect(envvars).To(Equal( []string{ "env1=env1value", "env2=env2value", }, )) }) }) Context("when the quota is positive", func() { It("should return the quotaed mount point path", func() { quotaedPath := "/path/to/quotaed/bananas" fakeCake.QuotaedPathReturns(quotaedPath, nil) mountPointPath, _, err := provider.Create( lagertest.NewTestLogger("test"), "some-id", &repository_fetcher.Image{ ImageID: "some-image-id", }, rootfs_provider.Spec{ Namespaced: false, QuotaSize: int64(10 * 1024 * 1024), }, ) Expect(err).ToNot(HaveOccurred()) Expect(mountPointPath).To(Equal(quotaedPath))