Skip to content

Commit

Permalink
Item11708: Expect failure in 1.1 for 1.2 Store API fixes
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.foswiki.org/trunk@15005 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information
PaulHarvey authored and PaulHarvey committed Jun 16, 2012
1 parent c6c29ea commit 8436fde
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion UnitTestContrib/test/unit/StoreImplementationTests.pm
Expand Up @@ -257,6 +257,8 @@ sub verify_getRevisionInfo {
my $info = $this->{sut}->getVersionInfo($readMeta);
$this->assert_num_equals( 2, $info->{version} );
$info = $this->{sut}->getVersionInfo( $readMeta, 1 );
$this->expect_failure( 'Item11708 Store API fixed in Foswiki 1.2+',
with_dep => 'Foswiki,<,1.2' );
$this->assert_num_equals( 1, $info->{version} );

$this->removeFromStore($web);
Expand Down Expand Up @@ -369,8 +371,10 @@ sub verify_repRevTopic {
# with the date - there's can't be an earlier rev.
$this->{sut}->repRev( $meta, $this->{test_user_cuid}, forcedate => 1000 );
my $info = $this->{sut}->getVersionInfo($meta);
$this->assert( $info->{date} - 1000 < 5, $info->{date} );
$this->assert_num_equals( 1, $info->{version} );
$this->expect_failure( 'Item11708 Store API fixed in Foswiki 1.2+',
with_dep => 'Foswiki,<,1.2' );
$this->assert( $info->{date} - 1000 < 5, $info->{date} );

# SMELL: Following test commented out because RcsWrap and RcsLite both fail when
# forcedate is used
Expand Down

0 comments on commit 8436fde

Please sign in to comment.