diff --git a/cucumber.yml b/cucumber.yml index 2a7ca8118e..cacb347b56 100644 --- a/cucumber.yml +++ b/cucumber.yml @@ -1,9 +1,9 @@ <% cucumber_pro_opts = ENV['ENABLE_CUCUMBER_PRO'] ? "--format Cucumber::Pro --out /dev/null" : "" -std_opts = "--format progress features -r features --strict #{cucumber_pro_opts}" +std_opts = "--format progress features -r features --strict #{cucumber_pro_opts}".dup std_opts << " --tags ~@wip-jruby" if defined?(JRUBY_VERSION) -wip_opts = "--color -r features" +wip_opts = "--color -r features".dup wip_opts << " --tags @wip" if !defined?(JRUBY_VERSION) wip_opts << " --tags @wip,@wip-jruby" if defined?(JRUBY_VERSION) %> diff --git a/lib/cucumber/term/ansicolor.rb b/lib/cucumber/term/ansicolor.rb index 61cf49a803..c4b1c73ce6 100644 --- a/lib/cucumber/term/ansicolor.rb +++ b/lib/cucumber/term/ansicolor.rb @@ -56,7 +56,7 @@ def self.coloring=(val) ATTRIBUTES.each do |c, v| eval %Q{ def #{c}(string = nil) - result = '' + result = String.new result << "\e[#{v}m" if Cucumber::Term::ANSIColor.coloring? if block_given? result << yield