Sha256: fa0d8d9071d2327988e67aab2ef50ba67b256797d785bd05ed199c8aae5647e8

Contents?: true

Size: 820 Bytes

Versions: 10

Compression:

Stored size: 820 Bytes

Contents

$LOAD_PATH.unshift(RAILS_ROOT + '/vendor/plugins/cucumber/lib') if File.directory?(RAILS_ROOT + '/vendor/plugins/cucumber/lib')

begin
  require 'cucumber/version'
  require 'cucumber/rake/task'

  Cucumber::Rake::Task.new(:features) do |t|
    minor = Cucumber::VERSION::MINOR.to_i
    tiny = Cucumber::VERSION::TINY.to_i
    raise LoadError if (minor < 3) || (minor == 3 && tiny < 9)
    t.fork = true
    t.cucumber_opts = ['--format', (ENV['CUCUMBER_FORMAT'] || 'pretty')]
    t.feature_pattern = "#{RADIANT_ROOT}/features/**/*.feature" if t.respond_to?(:feature_pattern=)
  end
  task :features => 'db:test:prepare'
rescue LoadError
  desc 'Cucumber rake task not available'
  task :features do
    abort 'Cucumber rake task is not available. Be sure to install cucumber version 0.3.9 as a gem or plugin'
  end
end

Version data entries

10 entries across 10 versions & 2 rubygems

Version Path
radiantcms-couchrest_model-0.2.4 lib/tasks/cucumber.rake
radiantcms-couchrest_model-0.2.2 lib/tasks/cucumber.rake
radiantcms-couchrest_model-0.2.1 lib/tasks/cucumber.rake
radiantcms-couchrest_model-0.2 lib/tasks/cucumber.rake
radiantcms-couchrest_model-0.1.9 lib/tasks/cucumber.rake
radiantcms-couchrest_model-0.1.8 lib/tasks/cucumber.rake
radiantcms-couchrest_model-0.1.7 lib/tasks/cucumber.rake
radiantcms-couchrest_model-0.1.6 lib/tasks/cucumber.rake
radiantcms-couchrest_model-0.1.5 lib/tasks/cucumber.rake
radiant-0.8.2 lib/tasks/cucumber.rake