Toggle navigation
Toggle navigation
This project
Loading...
Sign in
iOS
/
asi-http-request
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
Ben Copsey
2009-07-13 13:46:32 +0100
Browse Files
Options
Browse Files
Download
Plain Diff
Commit
70389c8053bcf64d2d16a023e55e06e46703c36e
70389c80
2 parents
6413371b
ede6f31c
Merge branch 'master' into s3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
0 deletions
Classes/Tests/ASIHTTPRequestTests.h
Classes/Tests/ASIHTTPRequestTests.m
Classes/Tests/ASIHTTPRequestTests.h
View file @
70389c8
...
...
@@ -35,4 +35,5 @@
-
(
void
)
testSSL
;
-
(
void
)
testRedirectPreservesSession
;
-
(
void
)
testTooMuchRedirection
;
-
(
void
)
testRedirectToNewDomain
;
@end
...
...
Classes/Tests/ASIHTTPRequestTests.m
View file @
70389c8
...
...
@@ -659,4 +659,12 @@
GHAssertTrue
(
success
,
@"Generated the wrong error for a redirection loop"
);
}
-
(
void
)
testRedirectToNewDomain
{
ASIHTTPRequest
*
request
=
[
ASIHTTPRequest
requestWithURL
:[
NSURL
URLWithString
:
@"http://allseeing-i.com/ASIHTTPRequest/tests/redirect_to_new_domain"
]];
[
request
start
];
BOOL
success
=
[[[
request
url
]
absoluteString
]
isEqualTo
:
@"http://www.apple.com/"
];
GHAssertTrue
(
success
,
@"Failed to redirect to a different domain"
);
}
@end
...
...
Please
register
or
login
to post a comment