summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2019-05-24 20:32:45 +0200
committerDavid Rodríguez <deivid.rodriguez@riseup.net>2019-05-24 20:32:45 +0200
commit4f05417ca7de8a9b96c8c1fa1ed93f82c4aaaf7d (patch)
tree87c6f1e1e87b79b1db5655b0767106bea9a9bf6f
parent279603ab429e74f82d21b9f637b49c1db85c0427 (diff)
downloadbundler-fix_shell_type_setting.tar.gz
Skip specs that need coloring on Windowsfix_shell_type_setting
ANSI codes don't work there.
-rw-r--r--spec/bundler/source_spec.rb6
-rw-r--r--spec/spec_helper.rb1
2 files changed, 4 insertions, 3 deletions
diff --git a/spec/bundler/source_spec.rb b/spec/bundler/source_spec.rb
index 00eb05ed88..9ae6b3e3eb 100644
--- a/spec/bundler/source_spec.rb
+++ b/spec/bundler/source_spec.rb
@@ -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
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
index 067c8dc070..4fc64e4ea0 100644
--- a/spec/spec_helper.rb
+++ b/spec/spec_helper.rb
@@ -78,6 +78,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"]