Skip to content

Commit

Permalink
Add rake task to re-run the last cuke.
Browse files Browse the repository at this point in the history
  • Loading branch information
myronmarston committed Nov 25, 2011
1 parent 5d4078e commit 8cefe96
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -136,3 +136,14 @@ task :migrate_cucumber_cassettes do
end
end

desc "Run the last cuke directly"
task :run_last_cuke do
command = ENV.fetch('CMD') do
raise "Must pass CMD"
end

Dir.chdir("tmp/aruba") do
sh "RUBYOPT='-I.:../../lib -r../../features/support/vcr_cucumber_helpers' ruby #{command}"
end
end

0 comments on commit 8cefe96

Please sign in to comment.