Skip to content

Commit 4992522

Browse files
authored
Merge pull request #240 from ThoughtCrhyme/MAINT
(Maintenance) remove redundant rake task
2 parents 942af24 + e4a54e0 commit 4992522

File tree

1 file changed

+0
-22
lines changed

1 file changed

+0
-22
lines changed

Rakefile

-22
Original file line numberDiff line numberDiff line change
@@ -21,25 +21,3 @@ task :validate do
2121
sh "erb -P -x -T '-' #{template} | ruby -c"
2222
end
2323
end
24-
25-
require 'rspec/core/rake_task'
26-
desc 'test tiering'
27-
RSpec::Core::RakeTask.new(:test_tier) do |t|
28-
# Setup rspec opts
29-
t.rspec_opts = ['--color']
30-
31-
# TEST_TIERS env variable is a comma separated list of tiers to run. e.g. low, medium, high
32-
if ENV['TEST_TIERS']
33-
test_tiers = ENV['TEST_TIERS'].split(',')
34-
raise 'TEST_TIERS env variable must have at least 1 tier specified. low, medium or high (comma separated).' if test_tiers.count == 0
35-
test_tiers.each do |tier|
36-
raise "#{tier} not a valid test tier." unless %w(low medium high).include?(tier)
37-
t.rspec_opts.push("--tag tier_#{tier}")
38-
end
39-
else
40-
puts 'TEST_TIERS env variable not defined. Defaulting to run all tests.'
41-
end
42-
43-
# Implement an override for the pattern with BEAKER_PATTERN env variable.
44-
t.pattern = ENV['BEAKER_PATTERN'] ? ENV['BEAKER_PATTERN'] : 'spec/acceptance'
45-
end

0 commit comments

Comments
 (0)