Bug 18014: QA follow-up: Use ok() instead of is() for '>' comparison
authorJulian Maurice <julian.maurice@biblibre.com>
Fri, 3 Feb 2017 12:31:56 +0000 (13:31 +0100)
committerKyle M Hall <kyle@bywatersolutions.com>
Tue, 14 Feb 2017 14:01:11 +0000 (14:01 +0000)
Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
t/db_dependent/AuthoritiesMarc.t

index d3ebc25..57fcc88 100755 (executable)
@@ -202,7 +202,7 @@ subtest 'AddAuthority should respect AUTO_INCREMENT (BZ 18104)' => sub {
     isnt( $id1, $id2, 'Do not return the same id again' );
     t::lib::Mocks::mock_preference( 'marcflavour', 'UNIMARC' );
     my $id3 = AddAuthority( $record, undef, 'GEOGR_NAME' );
-    is( $id3 > 0, 1, 'Tested AddAuthority with UNIMARC' );
+    ok( $id3 > 0, 'Tested AddAuthority with UNIMARC' );
     is( $record->field('001')->data, $id3, 'Check updated 001' );
 };