From b9cdc2bba41f978cbfa9e9dcdc59d74cf8c0b1c0 Mon Sep 17 00:00:00 2001 From: Alexey Pokhozhaev Date: Wed, 7 Oct 2015 15:29:34 +0300 Subject: [PATCH] Run cucumber if features directory exists + removed unused task --- gem_rake_helper.rb | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/gem_rake_helper.rb b/gem_rake_helper.rb index 0fdd80bb..ab9037fd 100644 --- a/gem_rake_helper.rb +++ b/gem_rake_helper.rb @@ -21,15 +21,7 @@ Cucumber::Rake::Task.new do |t| exempt_tags << '--tags ~@nowindows' if Gem.win_platform? exempt_tags << '--tags ~@travishatesme' if ENV['TRAVIS'] == 'true' t.cucumber_opts = "--require features --color #{exempt_tags.join(' ')} --strict"# --format #{ENV['CUCUMBER_FORMAT'] || 'Fivemat'}" -end - -Cucumber::Rake::Task.new(:cucumber_wip) do |t| - exempt_tags = ['--tags @wip'] - exempt_tags << '--tags ~@nojava' if RUBY_PLATFORM == 'java' - exempt_tags << '--tags ~@encoding' unless Object.const_defined?(:Encoding) - exempt_tags << '--tags ~@nowindows' if Gem.win_platform? - t.cucumber_opts = "--color #{exempt_tags.join(' ')} --strict"# --format #{ENV['CUCUMBER_FORMAT'] || 'Fivemat'}" -end +end if Dir.exists? 'features' require 'rspec/core/rake_task' desc 'Run RSpec'