[DRE-commits] [ruby-bluecloth] 03/06: drop tidy part of specs
Cédric Boutillier
boutil at moszumanska.debian.org
Tue Dec 17 22:51:21 UTC 2013
This is an automated email from the git hooks/post-receive script.
boutil pushed a commit to branch master
in repository ruby-bluecloth.
commit eeb8e4125665276bcafa91e7beb3c0c5f0e0d9d9
Author: Cédric Boutillier <boutil at debian.org>
Date: Tue Dec 17 23:43:28 2013 +0100
drop tidy part of specs
---
debian/patches/04_drop_tidy_part.patch | 94 ++++++++++++++++++++++++++++++++++
debian/patches/series | 1 +
2 files changed, 95 insertions(+)
diff --git a/debian/patches/04_drop_tidy_part.patch b/debian/patches/04_drop_tidy_part.patch
new file mode 100644
index 0000000..f6d69ec
--- /dev/null
+++ b/debian/patches/04_drop_tidy_part.patch
@@ -0,0 +1,94 @@
+Description: drop the 'tidy' part of tests
+ ruby-tidy is Ruby 1.8 only, and should disappear from the archive
+Author: Cédric Boutillier <boutil at debian.org>
+Last-Update: 2013-12-17
+Forwarded: no
+
+--- a/spec/lib/matchers.rb
++++ b/spec/lib/matchers.rb
+@@ -2,7 +2,7 @@
+
+ require 'bluecloth'
+
+-require 'tidy'
++#require 'tidy'
+ require 'diff/lcs'
+ require 'diff/lcs/callbacks'
+ require 'spec/lib/constants'
+@@ -132,26 +132,26 @@
+
+ ### Variant of the regular TransformMatcher that normalizes the two strings using the 'tidy'
+ ### library before comparing.
+- class TidyTransformMatcher < TransformMatcher
++ #class TidyTransformMatcher < TransformMatcher
+
+- TIDY_OPTIONS = {}
++ # TIDY_OPTIONS = {}
+
+- ### Set the matcher's expected output to a tidied version of the input +html+.
+- def initialize( html )
+- @tidy = Tidy.open( TIDY_OPTIONS )
+- @html = @tidy.clean( html )
+- end
+-
+-
+- ### Returns true if the HTML generated by the given +bluecloth+ object matches the
+- ### expected HTML after normalizing them both with 'tidy'.
+- def matches?( bluecloth )
+- @bluecloth = bluecloth
+- @output_html = @tidy.clean( bluecloth.to_html )
+- return @output_html == @html
+- end
++ # ### Set the matcher's expected output to a tidied version of the input +html+.
++ # def initialize( html )
++ # @tidy = Tidy.open( TIDY_OPTIONS )
++ # @html = @tidy.clean( html )
++ # end
++
++
++ # ### Returns true if the HTML generated by the given +bluecloth+ object matches the
++ # ### expected HTML after normalizing them both with 'tidy'.
++ # def matches?( bluecloth )
++ # @bluecloth = bluecloth
++ # @output_html = @tidy.clean( bluecloth.to_html )
++ # return @output_html == @html
++ # end
+
+- end
++ #end
+
+
+ class TransformRegexpMatcher
+@@ -210,9 +210,9 @@
+ end
+
+ ### Generate a matcher that expects to match a normalized version of the specified +html+.
+- def be_transformed_into_normalized_html( html )
+- return BlueCloth::Matchers::TidyTransformMatcher.new( html )
+- end
++ #def be_transformed_into_normalized_html( html )
++ # return BlueCloth::Matchers::TidyTransformMatcher.new( html )
++ #end
+
+ ### Generate a matcher that expects to match the given +regexp+.
+ def be_transformed_into_html_matching( regexp )
+--- a/spec/markdowntest_spec.rb
++++ b/spec/markdowntest_spec.rb
+@@ -12,7 +12,7 @@
+
+ require 'rspec'
+ require 'bluecloth'
+-require 'tidy'
++#require 'tidy'
+
+ require 'spec/lib/helpers'
+
+@@ -33,7 +33,7 @@
+ expected = resultfile.read
+ options = { :smartypants => false }
+
+- the_markdown( markdown, options ).should be_transformed_into_normalized_html( expected )
++ #the_markdown( markdown, options ).should be_transformed_into_normalized_html( expected )
+ end
+ end
+
diff --git a/debian/patches/series b/debian/patches/series
index 0f38897..2bd861a 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
02_test_deactivate_BEGIN_headers.diff
+04_drop_tidy_part.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-bluecloth.git
More information about the Pkg-ruby-extras-commits
mailing list