Sha256: 3e60593968d3984a4ceb6c0b39b2d9dab073a5345afe36f72e554be8482f4455
Contents?: true
Size: 864 Bytes
Versions: 8
Compression:
Stored size: 864 Bytes
Contents
#!/usr/bin/env rake # Add your own tasks in files placed in lib/tasks ending in .rake, # for example lib/tasks/capistrano.rake, and they will automatically be available to Rake. $:.push File.expand_path("../lib", __FILE__) begin require 'bundler/gem_tasks' rescue LoadError warn "No Bundler, No Gem tasks" end begin require 'rspec' require 'rspec/core/rake_task' desc "Run unit specs" RSpec::Core::RakeTask.new :unit do |task| task.pattern = 'spec/unit/**/*_spec.rb' end require 'cucumber' require 'cucumber/rake/task' desc "Run features" Cucumber::Rake::Task.new(:features) do |t| t.cucumber_opts = "features --format pretty" end rescue LoadError %W[unit features].each do |task_name| task task_name do warn "Tests unavaiable without RSpec/Cucumber" fail end end end task default: %w[unit features]
Version data entries
8 entries across 8 versions & 1 rubygems
Version | Path |
---|---|
pr-1.0.0 | Rakefile |
pr-0.0.7 | Rakefile |
pr-0.0.6 | Rakefile |
pr-0.0.5 | Rakefile |
pr-0.0.4 | Rakefile |
pr-0.0.3 | Rakefile |
pr-0.0.2 | Rakefile |
pr-0.0.1 | Rakefile |