Skip to content

Commit

Permalink
Item12205: Different template on 1.2 vs. 1.1
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.foswiki.org/trunk@15794 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information
GeorgeClark authored and GeorgeClark committed Oct 30, 2012
1 parent 024d876 commit ad7983d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions UnitTestContrib/test/unit/RegisterTests.pm
Expand Up @@ -2138,8 +2138,11 @@ sub test_Item12205 {
}
catch Foswiki::OopsException with {
my $e = shift;
$this->assert_str_equals( "attention", $e->{template},
$e->stringify() );
my $template =
( $this->check_dependency('Foswiki,<,1.2') )
? 'attention'
: 'register';
$this->assert_str_equals( $template, $e->{template}, $e->stringify() );
$this->assert_str_equals( "bad_loginname", $e->{def}, $e->stringify() );
$this->assert_matches( 'not allowed', $e->{params}->[0],
$e->stringify() );
Expand Down

0 comments on commit ad7983d

Please sign in to comment.