1 use Test::Most tests => 2;
4 use CXGN::MasonFactory;
6 my $c = SGN::Context->new;
8 my $tempfile = File::Temp->new;
9 $tempfile->print("fogbat!");
12 $c->config->{system_message_file} = undef;
13 is( CXGN::MasonFactory->bare_render('/system_message.mas' ),
15 'system message is empty for no message file'
18 # correctly set system_message_file var
19 $c->config->{system_message_file} = "$tempfile";
20 like( CXGN::MasonFactory->bare_render('/system_message.mas'),
22 'system message looks correct'