Skip to content

Commit

Permalink
Merge pull request #280 from DavidS/default-to-rspec-behaviour
Browse files Browse the repository at this point in the history
Remove `--color` from everywhere, use RSpec default detection instead
  • Loading branch information
tphoney authored Feb 19, 2019
2 parents e502d1a + 64ce0aa commit 33247c8
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion .rspec
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
--format documentation
--color
--order rand
2 changes: 1 addition & 1 deletion lib/puppetlabs_spec_helper/rake_tasks.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
pattern = 'spec/{aliases,classes,defines,functions,hosts,integration,plans,tasks,type_aliases,types,unit}/**/*_spec.rb'

RSpec::Core::RakeTask.new(:spec_standalone) do |t, args|
t.rspec_opts = ['--color']
t.rspec_opts = []
t.rspec_opts << ENV['CI_SPEC_OPTIONS'] unless ENV['CI_SPEC_OPTIONS'].nil?
if ENV['CI_NODE_TOTAL'] && ENV['CI_NODE_INDEX']
ci_total = ENV['CI_NODE_TOTAL'].to_i
Expand Down
2 changes: 1 addition & 1 deletion lib/puppetlabs_spec_helper/tasks/beaker.rb
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def vagrant_ssh(set, node = nil)

class SetupBeaker
def self.setup_beaker(t)
t.rspec_opts = ['--color']
t.rspec_opts = []
t.pattern = 'spec/acceptance'
# TEST_TIERS env variable is a comma separated list of tiers to run. e.g. low, medium, high
if ENV['TEST_TIERS']
Expand Down
2 changes: 1 addition & 1 deletion spec/watchr.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def run(cmd)

def run_spec_test(file)
if File.exist? file
result = run "rspec --format p --color #{file}"
result = run "rspec --format p #{file}"
growl result.split("\n").last
puts result
else
Expand Down

0 comments on commit 33247c8

Please sign in to comment.