mirror of
https://github.com/middleman/middleman.git
synced 2022-11-09 12:20:27 -05:00
Add ~encoding tag to cucumber to only run tests for Encoding on platforms which support it
This commit is contained in:
parent
f6b55e8674
commit
509c91999d
1 changed files with 1 additions and 0 deletions
|
@ -19,6 +19,7 @@ end
|
|||
Cucumber::Rake::Task.new(:test, 'Run features that should pass') do |t|
|
||||
exempt_tags = ""
|
||||
exempt_tags << "--tags ~@nojava" if RUBY_PLATFORM == "java"
|
||||
exempt_tags << "--tags ~@encoding" unless Object.const_defined?(:Encoding)
|
||||
|
||||
t.cucumber_opts = "--color --tags ~@wip #{exempt_tags} --strict --format #{ENV['CUCUMBER_FORMAT'] || 'Fivemat'}"
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue