Rakefile in macros4cuke-0.3.30 vs Rakefile in macros4cuke-0.3.32
- old
+ new
@@ -13,9 +13,23 @@
# Testing-specific tasks
# Cucumber as testing tool
require 'cucumber/rake/task'
+# UGLY workaround for bug in Cucumber's rake task
+if Gem::VERSION[0].to_i >= 2 && Cucumber::VERSION <= '1.3.2'
+ # Monkey-patch a buggy method
+ class Cucumber::Rake::Task::ForkedCucumberRunner
+ def gem_available?(gemname)
+ if Gem::VERSION[0].to_i >= 2
+ gem_available_new_rubygems?(gemname)
+ else
+ gem_available_old_rubygems?(gemname)
+ end
+ end
+ end # class
+end
+
Cucumber::Rake::Task.new do |t|
end
# RSpec as testing tool
require 'rspec/core/rake_task'
\ No newline at end of file