1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[bundler/bundler] Skip specs that need coloring on Windows

ANSI codes don't work there.

https://github.com/bundler/bundler/commit/4f05417ca7
This commit is contained in:
David Rodríguez 2019-05-24 20:32:45 +02:00 committed by Hiroshi SHIBATA
parent 38df9e18da
commit 1a4bb80cd7
No known key found for this signature in database
GPG key ID: F9CF13417264FAC2
2 changed files with 4 additions and 3 deletions

View file

@ -56,7 +56,7 @@ RSpec.describe Bundler::Source do
context "with a different version" do
let(:locked_gem) { double(:locked_gem, :name => "nokogiri", :version => "< 1.5") }
context "with color" do
context "with color", :non_windows do
before { Bundler.ui = Bundler::UI::Shell.new }
it "should return a string with the spec name and version and locked spec version" do
@ -77,7 +77,7 @@ RSpec.describe Bundler::Source do
let(:spec) { double(:spec, :name => "nokogiri", :version => "1.6.1", :platform => rb) }
let(:locked_gem) { double(:locked_gem, :name => "nokogiri", :version => "1.7.0") }
context "with color" do
context "with color", :non_windows do
before { Bundler.ui = Bundler::UI::Shell.new }
it "should return a string with the locked spec version in yellow" do
@ -98,7 +98,7 @@ RSpec.describe Bundler::Source do
let(:spec) { double(:spec, :name => "nokogiri", :version => "1.7.1", :platform => rb) }
let(:locked_gem) { double(:locked_gem, :name => "nokogiri", :version => "1.7.0") }
context "with color" do
context "with color", :non_windows do
before { Bundler.ui = Bundler::UI::Shell.new }
it "should return a string with the locked spec version in green" do

View file

@ -74,6 +74,7 @@ RSpec.configure do |config|
config.filter_run_excluding :rubygems_master => (ENV["RGV"] != "master")
config.filter_run_excluding :bundler => RequirementChecker.against(Bundler::VERSION.split(".")[0])
config.filter_run_excluding :ruby_repo => !(ENV["BUNDLE_RUBY"] && ENV["BUNDLE_GEM"]).nil?
config.filter_run_excluding :non_windows => Gem.win_platform?
config.filter_run_when_matching :focus unless ENV["CI"]