Add ~encoding tag to cucumber to only run tests for Encoding on platforms which support it

This commit is contained in:
Thomas Reynolds 2012-06-16 15:09:48 -07:00
parent f6b55e8674
commit 509c91999d

View file

@ -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