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: 2016-06-07

--- a/spec/images_spec.rb
+++ b/spec/images_spec.rb
@@ -68,21 +68,23 @@
   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"
     expect { @pdf.image filename, :at => [100, 100] }.to 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"
     expect { @pdf.image filename, :at => [100, 100] }.to 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
     @pdf.image "#{Prawn::DATADIR}/images/16bit.png"
     expect(@pdf.state.version).to be >= 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
@@ -16,7 +16,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)
 
     expect(png.width).to eq(21)
@@ -28,7 +28,7 @@
     expect(png.interlace_method).to eq(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))
     expect(png.img_data).to eq(data)
@@ -45,7 +45,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)
     expect(png.transparency[:grayscale]).to eq(255)
   end
@@ -58,7 +58,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)
 
     expect(png.width).to eq(258)
@@ -70,7 +70,7 @@
     expect(png.interlace_method).to eq(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))
     expect(png.img_data).to eq(data)
@@ -88,7 +88,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)
     expect(png.transparency[:rgb]).to eq([0, 255, 0])
   end
@@ -131,7 +131,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)
 
     expect(png.width).to eq(150)
@@ -143,7 +143,7 @@
     expect(png.interlace_method).to eq(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))
     expect(png.img_data).to eq(data)
@@ -158,7 +158,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)
 
     expect(png.width).to eq(16)
@@ -170,14 +170,14 @@
     expect(png.interlace_method).to eq(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)
     expect(png.img_data).to eq(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)
@@ -193,7 +193,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)
 
     expect(png.width).to eq(320)
@@ -205,14 +205,14 @@
     expect(png.interlace_method).to eq(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)
     expect(png.img_data).to eq(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)
@@ -229,7 +229,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)
 
     expect(png.width).to eq(32)
@@ -241,14 +241,14 @@
     expect(png.interlace_method).to eq(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)
     expect(png.img_data).to eq(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)
