We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
It should be:
#!/usr/bin/env perl
use strict; use warnings;
use HTML::Mason::Tests;
my $group = HTML::Mason::Tests->new( name => 'name of group', description => 'tests something' ); $group->add_test( name => 'foo', description => 'tests foo', comp_root => '/home/daveh/Perforce/code_SaaS/head/portal/WWWDocs/portal/cloud_dashboard/', component => <<'EOF' <%args> $foo => 1 </%args> <% $foo %> EOF, expect => <<'EOF', 1 EOF );
Also, I think it's well worthwhile mentioning that expect can be a regexp. I only found that by trawling the source code.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
It should be:
#!/usr/bin/env perl
use strict;
use warnings;
use HTML::Mason::Tests;
my $group = HTML::Mason::Tests->new( name => 'name of group', description => 'tests something' );
$group->add_test( name => 'foo',
description => 'tests foo',
comp_root =>
'/home/daveh/Perforce/code_SaaS/head/portal/WWWDocs/portal/cloud_dashboard/',
component => <<'EOF'
<%args>
$foo => 1
</%args>
<% $foo %>
EOF,
expect => <<'EOF',
1
EOF
);
Also, I think it's well worthwhile mentioning that expect can be a regexp. I only found that by trawling the source code.
The text was updated successfully, but these errors were encountered: