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
|
@ -19,6 +19,7 @@ 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 = ""
|
||||||
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)
|
||||||
|
|
||||||
t.cucumber_opts = "--color --tags ~@wip #{exempt_tags} --strict --format #{ENV['CUCUMBER_FORMAT'] || 'Fivemat'}"
|
t.cucumber_opts = "--color --tags ~@wip #{exempt_tags} --strict --format #{ENV['CUCUMBER_FORMAT'] || 'Fivemat'}"
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue