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