This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "cucumber/rake/task" | |
namespace :cucumber do | |
default_opts = ["--format progress", "--color"] | |
Cucumber::Rake::Task.new(:all, "Run all features") do |t| | |
t.cucumber_opts = [*default_opts] | |
end | |
Cucumber::Rake::Task.new(:ok, "Run all features that should pass") do |t| |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "rspec/core/rake_task" | |
namespace :spec do | |
default_opts = ["--format progress", "--color"] | |
desc "Run all specs" | |
RSpec::Core::RakeTask.new(:all) do |t| | |
t.rspec_opts = [*default_opts] | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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. | |
# If a Spork task is called, don't load the Rails environment | |
# but instantly import and start the task. (Fast) | |
if Rake.application.top_level_tasks.first =~ /^spork/ | |
import File.expand_path("../lib/tasks/spork.rake", __FILE__) | |
else | |
# Load the Rails environment and load all tasks. (Slow) |