Skip to content

Commit

Permalink
ensure that @Stop is used only if not running with profile CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Neeraj Singh authored and schof committed Jan 25, 2011
1 parent 4bfc0f6 commit dad4700
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions features/support/stop.rb
@@ -1,10 +1,12 @@
After do |scenario|
if scenario.failed? && scenario.source_tag_names.include?("@wip") && scenario.source_tag_names.include?("@stop")
puts "Scenario failed. We're in @wip mode, so I've stopped here." <<
"You can inspect the issue and leave the console after that."
require 'irb'
require 'irb/completion'
ARGV.clear
IRB.start
unless ENV['CI']
if scenario.failed? && scenario.source_tag_names.include?("@wip") && scenario.source_tag_names.include?("@stop")
puts "Scenario failed. We're in @wip mode, so I've stopped here." <<
"You can inspect the issue and leave the console after that."
require 'irb'
require 'irb/completion'
ARGV.clear
IRB.start
end
end
end

0 comments on commit dad4700

Please sign in to comment.