-
Notifications
You must be signed in to change notification settings - Fork 79
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Assertion redeclared during import w/ Gomega #88
Comments
Maybe it's an import alias issue. Does this code solves your problem? package foo
import (
"testing"
"github.com/onsi/gomega"
. "github.com/franela/goblin"
) |
That works but then calls to all of the imported functions from Gomega (Expect, Equal, RegisterFailHandler, etc) must be prepended. What I ended up doing is: package foo
import (
"testing"
. "github.com/onsi/gomega"
gob "github.com/franela/goblin"
)
func TestFoo(t *testing.T) {
g := gob.Goblin(t)
... I'll make a PR with the doc fixed. |
speakingcode
added a commit
to speakingcode/goblin
that referenced
this issue
Aug 24, 2020
marcosnils
pushed a commit
that referenced
this issue
Oct 6, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
trying to run
go test
produces the following error:go.mod
The text was updated successfully, but these errors were encountered: