1
0
Fork 0
mirror of https://github.com/middleman/middleman.git synced 2022-11-09 12:20:27 -05:00

Fix cucumber flags in jruby

This commit is contained in:
Thomas Reynolds 2012-06-17 11:31:10 -07:00
parent bdfc270367
commit 10d0df2622

View file

@ -17,11 +17,11 @@ class Bundler::GemHelper
end end
Cucumber::Rake::Task.new(:test, 'Run features that should pass') do |t| Cucumber::Rake::Task.new(:test, 'Run features that should pass') do |t|
exempt_tags = "" exempt_tags = ["--tags ~@wip"]
exempt_tags << "--tags ~@nojava" if RUBY_PLATFORM == "java" exempt_tags << "--tags ~@nojava" if RUBY_PLATFORM == "java"
exempt_tags << "--tags ~@encoding" unless Object.const_defined?(:Encoding) exempt_tags << "--tags ~@encoding" unless Object.const_defined?(:Encoding)
t.cucumber_opts = "--color --tags ~@wip #{exempt_tags} --strict --format #{ENV['CUCUMBER_FORMAT'] || 'Fivemat'}" t.cucumber_opts = "--color #{exempt_tags.join(" ")} --strict --format #{ENV['CUCUMBER_FORMAT'] || 'Fivemat'}"
end end
YARD::Rake::YardocTask.new YARD::Rake::YardocTask.new