Skip to content

Commit

Permalink
Item12888: skip RCS tests that check for 1.1.x broken behaviour
Browse files Browse the repository at this point in the history
  • Loading branch information
Comment committed Jun 2, 2015
1 parent a7a06e0 commit 275d41e
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion RCSStoreContrib/test/unit/RCSStoreContrib/LoadedRevTests.pm
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ sub new {
}

sub fixture_groups {
return [ 'RcsWrap', 'RcsLite' ];
return ( [ 'RcsWrap', 'RcsLite' ] );
}

sub RcsWrap {
Expand All @@ -35,6 +35,23 @@ sub RcsLite {
$Foswiki::cfg{Store}{Implementation} = 'Foswiki::Store::RcsLite';
}

sub skip {
my ( $this, $test ) = @_;

return $this->SUPER::skip_test_if(
$test,
{
condition => { with_dep => 'Foswiki,>=,1.2' },
tests => {
'LoadedRevTests::verify_borked_TOPICINFO_load_behind_RcsWrap' =>
'Not useful on 1.2+',
'LoadedRevTests::verify_borked_TOPICINFO_load_behind_RcsLite' =>
'Not useful on 1.2+',
}
}
);
}

# Topic has not been saved. Loaded rev should be undef *even after
# a load*
sub verify_phantom_topic {
Expand Down Expand Up @@ -174,6 +191,9 @@ WHEE
sub verify_borked_TOPICINFO_load_behind {
my $this = shift;

# This test is no longer useful on 1.2.0, as the underlying bug has been
# fixed

# Start by creating a topic with a valid rev no (1)
# Rev 1: Your grandmother smells of elderberries
my ($topicObject) =
Expand Down

0 comments on commit 275d41e

Please sign in to comment.