From cf51fe6a20b5f2649d2bddbb616032fc5e8518d3 Mon Sep 17 00:00:00 2001 From: Ben Hollis Date: Sun, 10 Feb 2013 16:53:38 -0800 Subject: [PATCH] Fix binary_spec test for svgz - it's binary --- middleman-core/spec/middleman-core/binary_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/middleman-core/spec/middleman-core/binary_spec.rb b/middleman-core/spec/middleman-core/binary_spec.rb index ad04efb7..1643bd93 100644 --- a/middleman-core/spec/middleman-core/binary_spec.rb +++ b/middleman-core/spec/middleman-core/binary_spec.rb @@ -1,13 +1,13 @@ require 'middleman-core/util' describe "Middleman::Util#binary?" do - %w(plain.txt unicode.txt unicode stars.svgz).each do |file| + %w(plain.txt unicode.txt unicode).each do |file| it "recognizes #{file} as not binary" do Middleman::Util.binary?(File.join(File.dirname(__FILE__), "binary_spec/#{file}")).should be_false end end - %w(middleman.png middleman).each do |file| + %w(middleman.png middleman stars.svgz).each do |file| it "recognizes #{file} as binary" do Middleman::Util.binary?(File.join(File.dirname(__FILE__), "binary_spec/#{file}")).should be_true end