[Koha-patches] [PATCH 2/2] Bug 5327 - fixing t/db_dependent/Record.t to not fail because of whitespace.

Liz Rea wizzyrea at gmail.com
Wed Dec 7 23:51:17 CET 2011


To test:
run prove -v t/db_dependent/Record.t
The test should complete successfully.

I should note - if this test was actually testing the whitespace and the problem with the output was valid, please go ahead and fix that problem and disregard this patch.
To me, the generated output looked better than the expected result, so I made them match.
---
 t/db_dependent/Record.t |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/t/db_dependent/Record.t b/t/db_dependent/Record.t
index b0e1894..2e04449 100755
--- a/t/db_dependent/Record.t
+++ b/t/db_dependent/Record.t
@@ -74,11 +74,11 @@ is ($marcqualified, $test3xml, "testing marcQualified");
 my $mods=marc2modsxml($marc);
 my $test4xml=qq(<?xml version="1.0" encoding="UTF-8"?>
 <mods xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.loc.gov/mods/v3" version="3.1" xsi:schemaLocation="http://www.loc.gov/mods/v3 http://www.loc.gov/standards/mods/v3/mods-3-1.xsd">
-<typeOfResource/>
-<originInfo>
-<issuance/>
-</originInfo>
-<recordInfo/>
+  <typeOfResource/>
+  <originInfo>
+    <issuance/>
+  </originInfo>
+  <recordInfo/>
 </mods>
 );
 
-- 
1.7.2.5



More information about the Koha-patches mailing list