Description: disable some specs after removal of some files from the source package
 Some specs are using for the moment images with unclear license and/or
 non-free fonts. These are disabled because they cannot be run since these
 files have been removed from the Debian source package.
Author: Cédric Boutillier <boutil@debian.org>
Last-Update: 2014-04-14

--- a/spec/images_spec.rb
+++ b/spec/images_spec.rb
@@ -69,21 +69,24 @@
   end
 
   it "should raise_error an UnsupportedImageType if passed a BMP" do
+    pending "spec disabled since tru256.bmp removed from source package (Debian patch)"
     filename = "#{Prawn::DATADIR}/images/tru256.bmp"
     lambda { @pdf.image filename, :at => [100,100] }.should raise_error(Prawn::Errors::UnsupportedImageType)
   end
 
   it "should raise_error an UnsupportedImageType if passed an interlaced PNG" do
+    pending "spec disabled since dice_interlaced.png removed from source package (Debian patch)"
     filename = "#{Prawn::DATADIR}/images/dice_interlaced.png"
     lambda { @pdf.image filename, :at => [100,100] }.should raise_error(Prawn::Errors::UnsupportedImageType)
   end
 
-  it "should bump PDF version to 1.5 or greater on embedding 16-bit PNGs" do
+  xit "should bump PDF version to 1.5 or greater on embedding 16-bit PNGs" do
+    pending "spec disabled since 16bit.png removed from source package (Debian patch)"
     @pdf.image "#{Prawn::DATADIR}/images/16bit.png"
     @pdf.state.version.should >= 1.5
   end
 
-  it "should embed 16-bit alpha channels for 16-bit PNGs" do
+  xit "should embed 16-bit alpha channels for 16-bit PNGs" do
     @pdf.image "#{Prawn::DATADIR}/images/16bit.png"
 
     output = @pdf.render
--- a/spec/png_spec.rb
+++ b/spec/png_spec.rb
@@ -17,7 +17,7 @@
     @img_data = File.binread(@filename)
   end
 
-  it "should read the attributes from the header chunk correctly" do
+  xit "should read the attributes from the header chunk correctly" do
     png = Prawn::Images::PNG.new(@img_data)
 
     png.width.should == 21
@@ -29,7 +29,7 @@
     png.interlace_method.should == 0
   end
 
-  it "should read the image data chunk correctly" do
+  xit "should read the image data chunk correctly" do
     png = Prawn::Images::PNG.new(@img_data)
     data = Zlib::Inflate.inflate(File.binread(@data_filename))
     png.img_data.should == data
@@ -47,7 +47,7 @@
   # that indicates the color that should be interpreted as transparent.
   #
   # http://www.w3.org/TR/PNG/#11tRNS
-  it "should read the tRNS chunk correctly" do
+  xit "should read the tRNS chunk correctly" do
     png = Prawn::Images::PNG.new(@img_data)
     png.transparency[:grayscale].should == 255
   end
@@ -61,7 +61,7 @@
     @img_data = File.binread(@filename)
   end
 
-  it "should read the attributes from the header chunk correctly" do
+  xit "should read the attributes from the header chunk correctly" do
     png = Prawn::Images::PNG.new(@img_data)
 
     png.width.should == 258
@@ -73,7 +73,7 @@
     png.interlace_method.should == 0
   end
 
-  it "should read the image data chunk correctly" do
+  xit "should read the image data chunk correctly" do
     png = Prawn::Images::PNG.new(@img_data)
     data = Zlib::Inflate.inflate(File.binread(@data_filename))
     png.img_data.should == data
@@ -92,7 +92,7 @@
   # case it's green.
   #
   # http://www.w3.org/TR/PNG/#11tRNS
-  it "should read the tRNS chunk correctly" do
+  xit "should read the tRNS chunk correctly" do
     png = Prawn::Images::PNG.new(@img_data)
     png.transparency[:rgb].should == [0, 255, 0]
   end
@@ -108,7 +108,7 @@
     @img_data = File.binread(@filename)
   end
 
-  it "should read the attributes from the header chunk correctly" do
+  xit "should read the attributes from the header chunk correctly" do
     png = Prawn::Images::PNG.new(@img_data)
 
     png.width.should == 150
@@ -120,7 +120,7 @@
     png.interlace_method.should == 0
   end
 
-  it "should read the image data chunk correctly" do
+  xit "should read the image data chunk correctly" do
     png = Prawn::Images::PNG.new(@img_data)
     data = Zlib::Inflate.inflate(File.binread(@data_filename))
     png.img_data.should == data
@@ -136,7 +136,7 @@
     @img_data = File.binread(@filename)
   end
 
-  it "should read the attributes from the header chunk correctly" do
+  xit "should read the attributes from the header chunk correctly" do
     png = Prawn::Images::PNG.new(@img_data)
 
     png.width.should == 16
@@ -148,14 +148,14 @@
     png.interlace_method.should == 0
   end
 
-  it "should correctly return the raw image data (with no alpha channel) from the image data chunk" do
+  xit "should correctly return the raw image data (with no alpha channel) from the image data chunk" do
     png = Prawn::Images::PNG.new(@img_data)
     png.split_alpha_channel!
     data = File.binread(@color_data_filename)
     png.img_data.should == data
   end
 
-  it "should correctly extract the alpha channel data from the image data chunk" do
+  xit "should correctly extract the alpha channel data from the image data chunk" do
     png = Prawn::Images::PNG.new(@img_data)
     png.split_alpha_channel!
     data = File.binread(@alpha_data_filename)
@@ -172,7 +172,7 @@
     @img_data = File.binread(@filename)
   end
 
-  it "should read the attributes from the header chunk correctly" do
+  xit "should read the attributes from the header chunk correctly" do
     png = Prawn::Images::PNG.new(@img_data)
 
     png.width.should == 320
@@ -184,14 +184,14 @@
     png.interlace_method.should == 0
   end
 
-  it "should correctly return the raw image data (with no alpha channel) from the image data chunk" do
+  xit "should correctly return the raw image data (with no alpha channel) from the image data chunk" do
     png = Prawn::Images::PNG.new(@img_data)
     png.split_alpha_channel!
     data = File.binread(@color_data_filename)
     png.img_data.should == data
   end
 
-  it "should correctly extract the alpha channel data from the image data chunk" do
+  xit "should correctly extract the alpha channel data from the image data chunk" do
     png = Prawn::Images::PNG.new(@img_data)
     png.split_alpha_channel!
     data = File.binread(@alpha_data_filename)
@@ -209,7 +209,7 @@
     @img_data = File.binread(@filename)
   end
 
-  it "should read the attributes from the header chunk correctly" do
+  xit "should read the attributes from the header chunk correctly" do
     png = Prawn::Images::PNG.new(@img_data)
 
     png.width.should == 32
@@ -221,14 +221,14 @@
     png.interlace_method.should == 0
   end
 
-  it "should correctly return the raw image data (with no alpha channel) from the image data chunk" do
+  xit "should correctly return the raw image data (with no alpha channel) from the image data chunk" do
     png = Prawn::Images::PNG.new(@img_data)
     png.split_alpha_channel!
     data = File.binread(@color_data_filename)
     png.img_data.should == data
   end
 
-  it "should correctly extract the alpha channel data from the image data chunk" do
+  xit "should correctly extract the alpha channel data from the image data chunk" do
     png = Prawn::Images::PNG.new(@img_data)
     png.split_alpha_channel!
     data = File.binread(@alpha_data_filename)
