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

Add redirect assertions #9

Merged
merged 1 commit into from
Aug 12, 2014

Conversation

hurrymaplelad
Copy link
Contributor

.redirect / .redirectTo(url)

Assert that a Response redirects, optionally to a given url.

expect(res).to.redirect;
expect(res).to.redirectTo('http://example.com');

@Guuz
Copy link
Contributor

Guuz commented Aug 12, 2014

👍

logicalparadox added a commit that referenced this pull request Aug 12, 2014
@logicalparadox logicalparadox merged commit 77697d8 into chaijs:master Aug 12, 2014
@Guuz
Copy link
Contributor

Guuz commented Aug 18, 2014

@logicalparadox: will there be a new release that includes this change?

@logicalparadox
Copy link
Member

0.5.0 released

@hurrymaplelad hurrymaplelad deleted the assert_redirect branch December 10, 2014 06:12
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.

None yet

3 participants