[DRE-commits] [ruby-rspec] 05/05: refresh and reapply disable_coderay_highlight_specs.patch

Cédric Boutillier boutil at moszumanska.debian.org
Mon May 15 10:54:51 UTC 2017


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

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

commit 6fd5de1e9095e8a8c783f45f2b56289093d36f5f
Author: Cédric Boutillier <boutil at debian.org>
Date:   Sun May 14 11:20:48 2017 +0200

    refresh and reapply disable_coderay_highlight_specs.patch
---
 .../patches/disable_coderay_highlight_specs.patch  | 28 ++++++++++++++++++----
 debian/patches/series                              |  2 +-
 2 files changed, 24 insertions(+), 6 deletions(-)

diff --git a/debian/patches/disable_coderay_highlight_specs.patch b/debian/patches/disable_coderay_highlight_specs.patch
index 2de35d6..bfec536 100644
--- a/debian/patches/disable_coderay_highlight_specs.patch
+++ b/debian/patches/disable_coderay_highlight_specs.patch
@@ -1,11 +1,11 @@
 Description: deactivate temporarily some specs using coderay
  maybe due to version not matching gemspecs
 Author: Cédric Boutillier <boutil at debian.org>
-Last-Update: 2016-03-02
+Last-Update: 2017-05-14
 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
+--- a/rspec-core/spec/rspec/core/formatters/syntax_highlighter_spec.rb
++++ b/rspec-core/spec/rspec/core/formatters/syntax_highlighter_spec.rb
 @@ -8,18 +8,18 @@
      context "when CodeRay is available", :unless => RSpec::Support::OS.windows? do
        before { expect { require 'coderay' }.not_to raise_error }
@@ -34,6 +34,24 @@ Forwarded: not-needed
  
 -      it 'dynamically adjusts to changing color config' do
 +      xit 'dynamically adjusts to changing color config' do
-         config.color = false
+         config.color_mode = :off
          expect(highlighter.highlight(['[:ok, "ok"]']).first).not_to be_highlighted
-         config.color = true
+         config.color_mode = :on
+@@ -44,7 +44,7 @@
+         expect(highlighter.highlight(lines)).to eq(lines)
+       end
+ 
+-      it "highlights core RSpec keyword-like methods" do
++      xit "highlights core RSpec keyword-like methods" do
+         highlighted_terms = find_highlighted_terms_in <<-EOS
+           describe stuff do
+             before { }
+@@ -124,7 +124,7 @@
+     end
+ 
+     def be_highlighted
+-      include("\e[32m")
++      include("\e[33m")
+     end
+ 
+   end
diff --git a/debian/patches/series b/debian/patches/series
index 22ac9ab..53b6ae2 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -11,4 +11,4 @@ fix-rake-task.patch
 #escape-path-in-match.patch
 #autorun-load-configuration.patch
 failed_specs.patch
-#disable_coderay_highlight_specs.patch
+disable_coderay_highlight_specs.patch

-- 
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