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

i18n_v4
Thomas Reynolds 2012-06-16 15:09:48 -07:00
parent f6b55e8674
commit 509c91999d
1 changed files with 1 additions and 0 deletions

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