From a19238f64f7f7c8bcec2bb6bc9acb6ffe7485a58 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lu=C3=ADs=20Miranda?= Date: Mon, 17 Apr 2023 16:11:23 +0100 Subject: [PATCH] Replace deprecated NewGomegaWithT with NewWithT (#659) --- docs/index.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/index.md b/docs/index.md index a73adbe48..30514c04d 100644 --- a/docs/index.md +++ b/docs/index.md @@ -60,14 +60,14 @@ To use Gomega with Golang's XUnit style tests: ```go func TestFarmHasCow(t *testing.T) { - g := NewGomegaWithT(t) + g := NewWithT(t) f := farm.New([]string{"Cow", "Horse"}) g.Expect(f.HasCow()).To(BeTrue(), "Farm should have cow") } ``` -`NewGomegaWithT(t)` wraps a `*testing.T` and returns a struct that supports `Expect`, `Eventually`, and `Consistently`. +`NewWithT(t)` wraps a `*testing.T` and returns a struct that supports `Expect`, `Eventually`, and `Consistently`. ## Making Assertions