Skip to content

Instantly share code, notes, and snippets.

@adonaldson
Created October 7, 2010 14:37
Show Gist options
  • Save adonaldson/615179 to your computer and use it in GitHub Desktop.
Save adonaldson/615179 to your computer and use it in GitHub Desktop.
# With the following spec/spec.opts:
# --colour
# --format progress
# --format failing_examples:spec/spec_rerun.txt
# --loadby mtime
# --reverse
#
# You can use the following rake task:
# rake spec:rerun
namespace :spec do
desc "Run all specs in spec/spec_rerun.txt"
Spec::Rake::SpecTask.new(:rerun) do |t|
t.spec_opts = ['--options', "\"#{RAILS_ROOT}/spec/spec.opts\""]
t.spec_opts += ["--example", "spec/spec_rerun.txt"]
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment