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

make the BDD tests pass #1

Merged
merged 1 commit into from Apr 11, 2012
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion t/features/mojo.feature 100644 → 100755
Expand Up @@ -14,7 +14,7 @@ Feature: Simple Mojolicious Application Testing

Scenario: Being able to login
When I go to "login"
Then I should see the "logout" url
Then I should see the "Logout" url
And I should see the "Logged\\s+in\\s+as" text
And I should see the "Mojolicious\\s+and\\s+Bootstrap" text

Expand Down
4 changes: 4 additions & 0 deletions t/features/step_definitions/mojo_steps.pl 100644 → 100755
Expand Up @@ -11,6 +11,10 @@
Given qr/a mojo test object for the "(.+)" application/, func ($c) {
use_ok( $1 );
my $tm = Test::Mojo->new( $1 );

# Allow redirects
$tm->ua->max_redirects(5);

ok( $tm, "Object created" );
$c->stash->{'feature'}->{'tm'} = $tm;
ok( $c->stash->{'feature'}->{'tm'}, "Got our Test::Mojo object" );
Expand Down