Sha256: 92e8783983ff119cd8a63a52a1ee69949e19f8748620bf5cb2315452aee5ff36

Contents?: true

Size: 626 Bytes

Versions: 6

Compression:

Stored size: 626 Bytes

Contents

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

begin
  require 'cucumber/rake/task'

  Cucumber::Rake::Task.new(:features) do |t|
  <% if language %>
    t.language = "<%= language%>"
    t.cucumber_opts = "--format pretty --language <%= language%>"
  <% else %>
    t.cucumber_opts = "--format pretty"
  <% end %>
  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 as a gem or plugin'
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
kosmas58-cucumber-0.1.100.5 rails_generators/cucumber/templates/cucumber.rake
kosmas58-cucumber-0.1.99.23 rails_generators/cucumber/templates/cucumber.rake
kosmas58-cucumber-0.2.0.1 rails_generators/cucumber/templates/cucumber.rake
kosmas58-cucumber-0.2.0 rails_generators/cucumber/templates/cucumber.rake
kosmas58-cucumber-0.2.2.1 rails_generators/cucumber/templates/cucumber.rake
kosmas58-cucumber-0.2.3.3 rails_generators/cucumber/templates/cucumber.rake