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:
parent
bdfc270367
commit
10d0df2622
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue