Run cucumber if features directory exists + removed unused task

v3-stable
Alexey Pokhozhaev 2015-10-07 15:29:34 +03:00
parent 3a7848da9e
commit b9cdc2bba4
1 changed files with 1 additions and 9 deletions

View File

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