Sha256: 37dca0b1768598cbcac1127dfdd2a19cb203a83cd9ee1f618774e77405c738ed
Contents?: true
Size: 973 Bytes
Versions: 3
Compression:
Stored size: 973 Bytes
Contents
require 'bundler' require 'rake/clean' <% if rspec %> require 'rspec/core/rake_task' <% else %> require 'rake/testtask' <% end %> require 'cucumber' require 'cucumber/rake/task' gem 'rdoc' # we need the installed RDoc gem, not the system one require 'rdoc/task' include Rake::DSL Bundler::GemHelper.install_tasks <% if rspec %> RSpec::Core::RakeTask.new do |t| # Put spec opts in a file named .rspec in root end <% else %> Rake::TestTask.new do |t| t.pattern = 'test/tc_*.rb' end <% end %> CUKE_RESULTS = 'results.html' CLEAN << CUKE_RESULTS Cucumber::Rake::Task.new(:features) do |t| t.cucumber_opts = "features --format html -o #{CUKE_RESULTS} --format pretty --no-source -x" t.fork = false end Rake::RDocTask.new do |rd| <% if using_readme %> rd.main = "README.rdoc" <% end %> rd.rdoc_files.include("README.rdoc","lib/**/*.rb","bin/**/*") end <% if rspec %> task :default => [:spec,:features] <% else %> task :default => [:test,:features] <% end %>
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
methadone-1.2.1 | templates/full/Rakefile.erb |
methadone-1.2.0 | templates/full/Rakefile.erb |
methadone-1.1.0 | templates/full/Rakefile.erb |