Skip to content

Commit

Permalink
Item2210: Use System/WhatIsWikiWiki as the HomePage changes way too o…
Browse files Browse the repository at this point in the history
…ften

git-svn-id: http://svn.foswiki.org/trunk@5253 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information
OlivierRaginel authored and OlivierRaginel committed Oct 10, 2009
1 parent 5efae97 commit c1d302f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions UnitTestContrib/test/unit/FuncTests.pm
Expand Up @@ -923,10 +923,10 @@ sub test_getExternalResource {
my $this = shift;

# need a known, simple, robust URL to get
my $response = Foswiki::Func::getExternalResource('http://foswiki.org');
my $response = Foswiki::Func::getExternalResource('http://foswiki.org/System/WhatIsWikiWiki');
$this->assert_equals( 200, $response->code() );
$this->assert_matches(
qr/Foswiki is the open, programmable collaboration platform for the Enterprise/s,
qr/A set of pages of information that are open and free for anyone to edit as they wish. They are stored in a server and managed using some software. The system creates cross-reference hyperlinks between pages automatically./s,
$response->content() );
$this->assert( !$response->is_error() );
$this->assert( !$response->is_redirect() );
Expand Down
4 changes: 2 additions & 2 deletions UnitTestContrib/test/unit/NetTests.pm
Expand Up @@ -47,7 +47,7 @@ sub verify_getExternalResource {
my $this = shift;

# need a known, simple, robust URL to get
my $response = $this->{net}->getExternalResource('http://foswiki.org');
my $response = $this->{net}->getExternalResource('http://foswiki.org/System/WhatIsWikiWiki');
$this->assert_equals( 200, $response->code() );

# Note: HTTP::Response doesn't clean out \r correctly
Expand All @@ -57,7 +57,7 @@ sub verify_getExternalResource {
$this->assert_matches( qr/$expectedHeader/is,
~~ $response->header('content-type') ); # ~~ forces scalar context
$this->assert_matches(
qr/Foswiki is the open, programmable collaboration platform for the Enterprise/s,
qr/A set of pages of information that are open and free for anyone to edit as they wish. They are stored in a server and managed using some software. The system creates cross-reference hyperlinks between pages automatically./s,
$response->content() );
$this->assert( !$response->is_error() );
$this->assert( !$response->is_redirect() );
Expand Down

0 comments on commit c1d302f

Please sign in to comment.