[DRE-commits] [nanoc] 02/05: remove unapplied add_if_have.patch

Cédric Boutillier boutil at moszumanska.debian.org
Fri May 9 15:58:13 UTC 2014


This is an automated email from the git hooks/post-receive script.

boutil pushed a commit to branch master
in repository nanoc.

commit bfe3bd2b030b75c838de8229b1105c206d298292
Author: Cédric Boutillier <boutil at debian.org>
Date:   Fri May 9 14:38:50 2014 +0200

    remove unapplied add_if_have.patch
---
 debian/patches/add_if_have.patch | 65 ----------------------------------------
 1 file changed, 65 deletions(-)

diff --git a/debian/patches/add_if_have.patch b/debian/patches/add_if_have.patch
deleted file mode 100644
index d6a37fe..0000000
--- a/debian/patches/add_if_have.patch
+++ /dev/null
@@ -1,65 +0,0 @@
---- a/test/extra/checking/checks/test_css.rb
-+++ b/test/extra/checking/checks/test_css.rb
-@@ -3,34 +3,38 @@
- class Nanoc::Extra::Checking::Checks::CSSTest < Nanoc::TestCase
- 
-   def test_run_ok
--    with_site do |site|
--      # Create files
--      FileUtils.mkdir_p('output')
--      File.open('output/blah.html', 'w') { |io| io.write('<h1>Hi!</h1>') }
--      File.open('output/style.css', 'w') { |io| io.write('h1 { color: red; }') }
--
--      # Run check
--      check = Nanoc::Extra::Checking::Checks::CSS.new(site)
--      check.run
--
--      # Check
--      assert check.issues.empty?
-+    if_have(w3c_validators) do
-+      with_site do |site|
-+        # Create files
-+        FileUtils.mkdir_p('output')
-+        File.open('output/blah.html', 'w') { |io| io.write('<h1>Hi!</h1>') }
-+        File.open('output/style.css', 'w') { |io| io.write('h1 { color: red; }') }
-+
-+        # Run check
-+        check = Nanoc::Extra::Checking::Checks::CSS.new(site)
-+        check.run
-+
-+        # Check
-+        assert check.issues.empty?
-+      end
-     end
-   end
- 
-   def test_run_error
--    with_site do |site|
--      # Create files
--      FileUtils.mkdir_p('output')
--      File.open('output/blah.html', 'w') { |io| io.write('<h1>Hi!</h1>') }
--      File.open('output/style.css', 'w') { |io| io.write('h1 { coxlor: rxed; }') }
--
--      # Run check
--      check = Nanoc::Extra::Checking::Checks::CSS.new(site)
--      check.run
--
--      # Check
--      refute check.issues.empty?
-+    if_have(w3c_validators) do
-+      with_site do |site|
-+        # Create files
-+        FileUtils.mkdir_p('output')
-+        File.open('output/blah.html', 'w') { |io| io.write('<h1>Hi!</h1>') }
-+        File.open('output/style.css', 'w') { |io| io.write('h1 { coxlor: rxed; }') }
-+
-+        # Run check
-+        check = Nanoc::Extra::Checking::Checks::CSS.new(site)
-+        check.run
-+
-+        # Check
-+        refute check.issues.empty?
-+      end
-     end
-   end
- 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/nanoc.git



More information about the Pkg-ruby-extras-commits mailing list