Skip to content

Add bodyNotContains function#1271

Merged
snoyberg merged 4 commits intoyesodweb:masterfrom
amitaibu:bodyNotContains
Sep 1, 2016
Merged

Add bodyNotContains function#1271
snoyberg merged 4 commits intoyesodweb:masterfrom
amitaibu:bodyNotContains

Conversation

@amitaibu
Copy link
Copy Markdown
Contributor

@amitaibu amitaibu commented Sep 1, 2016

PR adds a function to assert a text doesn't appear in the body of the response

(simpleBody res) `contains` text

-- | Assert the last response doesn't have the given text. The check is performed using the response
-- body in full text form.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add a @since comment, as well as bump the .cabal version field and add a comment to the ChangeLog.md? This looks good.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, also need to export the identifier from the module.

@snoyberg
Copy link
Copy Markdown
Member

snoyberg commented Sep 1, 2016

The build fails on Travis.

@amitaibu
Copy link
Copy Markdown
Contributor Author

amitaibu commented Sep 1, 2016

Tests seem to be fixed apart of one that is stuck. Maybe we should restart that test?

build__2106_-yesodweb_yesod-_travis_ci

@snoyberg
Copy link
Copy Markdown
Member

snoyberg commented Sep 1, 2016

Restarted

@snoyberg snoyberg merged commit 33fd9de into yesodweb:master Sep 1, 2016
@amitaibu
Copy link
Copy Markdown
Contributor Author

amitaibu commented Sep 1, 2016

The failing environment seems like it didn't restart. Should we move it to allowed failings?

@psibi
Copy link
Copy Markdown
Member

psibi commented Sep 1, 2016

I have restarted it again: https://travis-ci.org/yesodweb/yesod/jobs/156792968

@snoyberg
Copy link
Copy Markdown
Member

snoyberg commented Sep 1, 2016

I merged to master since all seems to be in order. We'll see if it breaks the master build too somehow.

@amitaibu
Copy link
Copy Markdown
Contributor Author

amitaibu commented Sep 1, 2016

Cool, thanks folks. Excited about my first yesod core PR :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants