1
0
Fork 0
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:
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| 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