Anonymous avatar Anonymous committed 977da16

Fixed the tests to point to the new data dir.

Comments (0)

Files changed (4)

perl/XML-Grammar-ProductsSyndication/Build.PL

 
 my $builder = Test::Run::Builder->new(
     module_name         => 'XML::Grammar::ProductsSyndication',
-    license             => 'bsd',
+    license             => 'mit',
     dist_author         => 'Shlomi Fish <shlomif@cpan.org>',
     dist_version_from   => 'lib/XML/Grammar/ProductsSyndication.pm',
     build_requires => {

perl/XML-Grammar-ProductsSyndication/Changes

 Revision history for XML::Grammar::ProductsSyndication
 
-0.0301  Tue Mar  3 19:14:16 IST 2009
+0.0301  Tue Mar  3 19:22:09 IST 2009
         - Adapted the Build.PL to properly install files in case we
         don't install under /usr . We are currently using the
         install_destination("lib") to determine a suitable place.
         - Extracted the extradata installation logic into a separate class
         under inc/XML/Grammar/Builder.pm for easy encapsulation and
         sharing among the different XML::Grammar::* projects.
+        - Fixed the tests' failures due to the fact that blib/extradata
+        is no longer generated.
 
 0.03    Tue Jun 17 11:32:22 IDT 2008
         - Added the "disable" attribute to the "isbn" tag, and added

perl/XML-Grammar-ProductsSyndication/t/01-validate.t

             'source' =>
             {
                 'file' => 
-                    File::Spec->catfile("t", "data", "valid-xmls", $xml_file),
+                    File::Spec->catfile(
+                        File::Spec->curdir(),
+                        "t", "data", "valid-xmls",
+                        $xml_file
+                    ),
             },
-            'data_dir' => File::Spec->catdir("blib", "extradata"),
+            'data_dir' => File::Spec->catdir(
+                File::Spec->curdir(), "extradata"
+            ),
         }
     );
     ok ($p->is_valid(), "Checking for validation of '$xml_file'");

perl/XML-Grammar-ProductsSyndication/t/02-xslt-output.t

             {
                 'file' => 
                     File::Spec->catfile(
+                        File::Spec->curdir(),
                         "t", "data", "valid-xmls", "$xml_file.xml"
                     ),
             },
-            'data_dir' => File::Spec->catdir("blib", "extradata"),
+            'data_dir' => File::Spec->catdir(
+                File::Spec->curdir(), "extradata"
+            ),
         }
     );
     my $got_xml = $p->transform_into_html({ 'output' => "string" });
     my $xml_file = shift;
     my $path = 
         File::Spec->catfile(
+            File::Spec->curdir(),
             "t", "data", "output-htmls", "$xml_file.html"
         );
    
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.