Created
October 7, 2010 14:37
-
-
Save adonaldson/615179 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
# 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