added tests for scripts
[catagits/CatalystX-HelpText.git] / t / script-tt2.t
CommitLineData
e5459d76 1#!/usr/bin/env perl
2
3use strict;
4use warnings;
5use Test::More;
6
7# setup library path
8use FindBin qw($Bin);
9use lib "$Bin/lib";
10
11use_ok 'CatalystX::HelpText::Finder::TemplateToolkit';
12my $path = "$Bin/lib/TestApp/root/";
13my $key = CatalystX::HelpText::Finder::TemplateToolkit->new(template_search_dir => "$path")->find_helptext_keys_in_fn("$path/main");
14is_deeply $key, ['fnoo'], 'key found';
15
16use_ok 'CatalystX::HelpText::Finder::TemplateToolkit::Regexp';
17$key = CatalystX::HelpText::Finder::TemplateToolkit->new(template_search_dir => "$path")->find_helptext_keys_in_fn("$path/main");
18is_deeply $key, ['fnoo'], 'key found';
19
20done_testing;