diff --git a/docs/index.md b/docs/index.md index 6aee23662..ca9e95549 100644 --- a/docs/index.md +++ b/docs/index.md @@ -5420,7 +5420,7 @@ ginkgo version ### Using Third-party Libraries -Most third-party Go `testing` integrations (e.g. matcher libraries, mocking libraries) take and wrap a `*testing.T` to provide functionality. Unfortunately there is no formal interface for `*testing.T` however Ginkgo provides a function, `GinkgoT()` that returns a struct that implements all the methods that `*testing.T` implements. Most libraries accept the `*testing.T` object via an interface and you can usually simply pass in `GinkgoT()` and expect the library to work. +Most third-party Go `testing` integrations (e.g. matcher libraries, mocking libraries) take and wrap a `*testing.T` to provide functionality. Unfortunately there is no formal interface for `*testing.T` however Ginkgo provides a function, `GinkgoT()` that returns a struct that implements all the methods that `*testing.T` implements. Most libraries accept the `*testing.T` object via an interface and you can usually simply pass in `GinkgoT()` and expect the library to work. Some libraries require passing in a `testing.TB` - you can use `GinkgoTB()` for these. For example, you can choose to use [testify](https://github.com/stretchr/testify) instead of Gomega like so: diff --git a/ginkgo_t_dsl.go b/ginkgo_t_dsl.go index e908cbfbf..639541a16 100644 --- a/ginkgo_t_dsl.go +++ b/ginkgo_t_dsl.go @@ -106,7 +106,6 @@ This wrapper satisfies the testing.TB interface and intended to be used as a dro Similar to GinkgoT(), GinkgoTB() takes an optional offset argument that can be used to get the correct line number associated with the failure - though you do not need to use this if you call GinkgoHelper() or GinkgoT().Helper() appropriately */ - func GinkgoTB(optionalOffset ...int) *GinkgoTBWrapper { offset := 2 if len(optionalOffset) > 0 {