[DRE-commits] [ruby-rspec] 17/18: more coderay failing tests

Cédric Boutillier boutil at moszumanska.debian.org
Wed Mar 2 17:58:07 UTC 2016


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

boutil pushed a commit to branch master
in repository ruby-rspec.

commit 31b5c1112c8fb09ed707bdffbdbb047bb8b7eff1
Author: Cédric Boutillier <boutil at debian.org>
Date:   Wed Mar 2 18:45:08 2016 +0100

    more coderay failing tests
---
 debian/patches/disable_coderay_highlight_specs.patch | 15 ++++++++++++++-
 1 file changed, 14 insertions(+), 1 deletion(-)

diff --git a/debian/patches/disable_coderay_highlight_specs.patch b/debian/patches/disable_coderay_highlight_specs.patch
index c28d10e..2de35d6 100644
--- a/debian/patches/disable_coderay_highlight_specs.patch
+++ b/debian/patches/disable_coderay_highlight_specs.patch
@@ -6,7 +6,7 @@ Forwarded: not-needed
 
 --- a/rspec-core/spec/rspec/core/source/syntax_highlighter_spec.rb
 +++ b/rspec-core/spec/rspec/core/source/syntax_highlighter_spec.rb
-@@ -8,7 +8,7 @@
+@@ -8,18 +8,18 @@
      context "when CodeRay is available", :unless => RSpec::Support::OS.windows? do
        before { expect { require 'coderay' }.not_to raise_error }
  
@@ -15,6 +15,19 @@ Forwarded: not-needed
          highlighted = highlighter.highlight(['[:ok, "ok"]'])
          expect(highlighted.size).to eq(1)
          expect(highlighted.first).to be_highlighted.and include(":ok")
+       end
+ 
+-      it 'prefixes the each line with a reset escape code so it can be interpolated in a colored string without affecting the syntax highlighting of the snippet' do
++      xit 'prefixes the each line with a reset escape code so it can be interpolated in a colored string without affecting the syntax highlighting of the snippet' do
+         highlighted = highlighter.highlight(['a = 1', 'b = 2'])
+         expect(highlighted).to all start_with("\e[0m")
+       end
+ 
+-      it 'leaves leading spaces alone so it can be re-indented as needed without the leading reset code interfering' do
++      xit 'leaves leading spaces alone so it can be re-indented as needed without the leading reset code interfering' do
+         highlighted = highlighter.highlight(['  a = 1', '  b = 2'])
+         expect(highlighted).to all start_with("  \e[0m")
+       end
 @@ -29,7 +29,7 @@
          expect(highlighter.highlight(['[:ok, "ok"]'])).to eq(['[:ok, "ok"]'])
        end

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



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