Skip to content

Instantly share code, notes, and snippets.

View gitkeeper's full-sized avatar

Alexander Baumann gitkeeper

View GitHub Profile
@gitkeeper
gitkeeper / cucumber.rake
Created December 29, 2011 16:17
General purpose Cucumber Rake tasks - useful for most projects.
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|
@gitkeeper
gitkeeper / spec.rake
Created December 29, 2011 16:16
General purpose RSpec Rake tasks - useful for most projects.
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
@gitkeeper
gitkeeper / Rakefile
Created November 8, 2011 01:11 — forked from xentek/Rakefile
Rake tasks for managing your Spork server. Check the Rakefile to bypass loading Rails to run Spork tasks quickly.
#!/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)