Commit 181e42bba25fd81a9c3a29bb12ef4ea7a60fea8d
1 parent
a8e44650
Exists in
master
and in
22 other branches
Support older (as in Debian stable) rake versions
Showing
2 changed files
with
7 additions
and
3 deletions
Show diff stats
lib/tasks/cucumber.rake
| @@ -35,8 +35,6 @@ begin | @@ -35,8 +35,6 @@ begin | ||
| 35 | desc 'Alias for cucumber:ok' | 35 | desc 'Alias for cucumber:ok' |
| 36 | task :cucumber => 'cucumber:ok' | 36 | task :cucumber => 'cucumber:ok' |
| 37 | 37 | ||
| 38 | - task :default => :cucumber | ||
| 39 | - | ||
| 40 | task :features => :cucumber do | 38 | task :features => :cucumber do |
| 41 | STDERR.puts "*** The 'features' task is deprecated. See rake -T cucumber ***" | 39 | STDERR.puts "*** The 'features' task is deprecated. See rake -T cucumber ***" |
| 42 | end | 40 | end |
lib/tasks/test.rake
| 1 | -Rake::Task[:test].clear | 1 | +t = Rake::Task[:test] |
| 2 | +if t.respond_to?(:clear) | ||
| 3 | + t.clear | ||
| 4 | +else | ||
| 5 | + t.prerequisites.clear | ||
| 6 | + t.instance_variable_get('@actions').clear | ||
| 7 | +end | ||
| 2 | 8 | ||
| 3 | task :test do | 9 | task :test do |
| 4 | errors = %w(test:units test:functionals test:integration cucumber selenium).collect do |task| | 10 | errors = %w(test:units test:functionals test:integration cucumber selenium).collect do |task| |