From 955aaa949ad20744a269e796cf42dbec6f48857b Mon Sep 17 00:00:00 2001 From: Genevieve LEsperance Date: Fri, 4 May 2018 19:03:48 -0700 Subject: [PATCH] Fix object name in test. --- aws/ec2/image_test.go | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/aws/ec2/image_test.go b/aws/ec2/image_test.go index ad5241dd..08790442 100644 --- a/aws/ec2/image_test.go +++ b/aws/ec2/image_test.go @@ -17,7 +17,7 @@ var _ = Describe("Image", func() { imageId *string resourceTags *fakes.ResourceTags - address ec2.Image + image ec2.Image ) BeforeEach(func() { @@ -25,12 +25,12 @@ var _ = Describe("Image", func() { imageId = aws.String("the-image-id") resourceTags = &fakes.ResourceTags{} - address = ec2.NewImage(client, imageId, resourceTags) + image = ec2.NewImage(client, imageId, resourceTags) }) Describe("Delete", func() { - It("releases the address", func() { - err := address.Delete() + It("deletes the resource", func() { + err := image.Delete() Expect(err).NotTo(HaveOccurred()) Expect(client.DeregisterImageCall.CallCount).To(Equal(1)) @@ -47,7 +47,7 @@ var _ = Describe("Image", func() { }) It("returns the error", func() { - err := address.Delete() + err := image.Delete() Expect(err).To(MatchError("Delete: banana")) }) }) @@ -58,7 +58,7 @@ var _ = Describe("Image", func() { }) It("returns the error", func() { - err := address.Delete() + err := image.Delete() Expect(err).To(MatchError("Delete tags: banana")) }) }) @@ -66,13 +66,13 @@ var _ = Describe("Image", func() { Describe("Name", func() { It("returns the identifier", func() { - Expect(address.Name()).To(Equal("the-image-id")) + Expect(image.Name()).To(Equal("the-image-id")) }) }) Describe("Type", func() { It("returns the type", func() { - Expect(address.Type()).To(Equal("EC2 Image")) + Expect(image.Type()).To(Equal("EC2 Image")) }) }) })