From 509c91999d714643dac45371320278793e05d180 Mon Sep 17 00:00:00 2001 From: Thomas Reynolds Date: Sat, 16 Jun 2012 15:09:48 -0700 Subject: [PATCH] Add ~encoding tag to cucumber to only run tests for Encoding on platforms which support it --- gem_rake_helper.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/gem_rake_helper.rb b/gem_rake_helper.rb index 2ff1b22c..3e71febd 100644 --- a/gem_rake_helper.rb +++ b/gem_rake_helper.rb @@ -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