Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed indentation issues and added some more tests
- Loading branch information
Edward
committed
Jan 9, 2011
1 parent
218289b
commit 5591c62
Showing
5 changed files
with
33 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
<h1>No Posts Found</h1> | ||
<p>Couldn't find any posts at this time - please come back later or alter your search terms.</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
[% title = 'Tag Could Not Be Found' %] | ||
<h1>Tag Could Not Be Found</h1> | ||
|
||
<p>The tag <strong>[% tags_query | html %]</strong> couldn't be found in our database. Please go back and try another.</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/usr/bin/perl | ||
use strict; | ||
use warnings; | ||
use Test::More qw(no_plan); | ||
|
||
use Test::WWW::Mechanize::Catalyst; | ||
my $mech = Test::WWW::Mechanize::Catalyst->new(catalyst_app => 'App::Catable'); | ||
$mech->get_ok('/posts/tag/not-a-real-tag-at-all'); | ||
$mech->content_contains('not-a-real-tag-at-all'); | ||
#TODO: Test for a real tag |
15 changes: 15 additions & 0 deletions
15
App-Catable/t/lib/for-notify/App/Catable/Controller/Notify.pm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package App::Catable::Controller::Notify; | ||
|
||
use strict; | ||
use warnings; | ||
use base 'Catalyst::Controller'; | ||
|
||
# Provided so tests can use notify without relying on any other mechanism | ||
sub hello_world : Local { | ||
my ($self, $c) = @_; | ||
$c->add_notification("Hello, world!"); | ||
$c->stash->{'template'} = 'index.tt2'; | ||
return; | ||
} | ||
|
||
1; |