Skip to content
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

Fixed typos #352

Merged
merged 1 commit into from Jul 21, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions format/format.go
Expand Up @@ -36,7 +36,7 @@ var PrintContextObjects = false
// TruncatedDiff choose if we should display a truncated pretty diff or not
var TruncatedDiff = true

// Ctx interface defined here to keep backwards compatability with go < 1.7
// Ctx interface defined here to keep backwards compatibility with go < 1.7
// It matches the context.Context interface
type Ctx interface {
Deadline() (deadline time.Time, ok bool)
Expand All @@ -61,7 +61,7 @@ Generates a formatted matcher success/failure message of the form:
<message>
<pretty printed expected>

If expected is omited, then the message looks like:
If expected is omitted, then the message looks like:

Expected
<pretty printed actual>
Expand Down
2 changes: 1 addition & 1 deletion gbytes/say_matcher.go
Expand Up @@ -21,7 +21,7 @@ Say is a Gomega matcher that operates on gbytes.Buffers:

will succeed if the unread portion of the buffer matches the regular expression "something".

When Say succeeds, it fast forwards the gbytes.Buffer's read cursor to just after the succesful match.
When Say succeeds, it fast forwards the gbytes.Buffer's read cursor to just after the successful match.
Thus, subsequent calls to Say will only match against the unread portion of the buffer

Say pairs very well with Eventually. To assert that a buffer eventually receives data matching "[123]-star" within 3 seconds you can:
Expand Down
2 changes: 1 addition & 1 deletion gexec/prefixed_writer.go
Expand Up @@ -8,7 +8,7 @@ import (
)

/*
PrefixedWriter wraps an io.Writer, emiting the passed in prefix at the beginning of each new line.
PrefixedWriter wraps an io.Writer, emitting the passed in prefix at the beginning of each new line.
This can be useful when running multiple gexec.Sessions concurrently - you can prefix the log output of each
session by passing in a PrefixedWriter:

Expand Down
2 changes: 1 addition & 1 deletion ghttp/test_server.go
Expand Up @@ -38,7 +38,7 @@ A more comprehensive example is available at https://onsi.github.io/gomega/#_tes
})

Context("when requesting all sprockets", func() {
Context("when the response is succesful", func() {
Context("when the response is successful", func() {
BeforeEach(func() {
sprockets = []Sprocket{
NewSprocket("Alfalfa"),
Expand Down
2 changes: 1 addition & 1 deletion gomega_dsl.go
Expand Up @@ -280,7 +280,7 @@ func SetDefaultEventuallyPollingInterval(t time.Duration) {
defaultEventuallyPollingInterval = t
}

// SetDefaultConsistentlyDuration sets the default duration for Consistently. Consistently will verify that your condition is satsified for this long.
// SetDefaultConsistentlyDuration sets the default duration for Consistently. Consistently will verify that your condition is satisfied for this long.
func SetDefaultConsistentlyDuration(t time.Duration) {
defaultConsistentlyDuration = t
}
Expand Down