Sha256: a4cf6c92629064873331b29cd6c1c68ac6df5362b25fabc871181382740de671

Contents?: true

Size: 272 Bytes

Versions: 2

Compression:

Stored size: 272 Bytes

Contents

require_relative 'helper.rb'

After do |scenario|
  scenario_name = scenario.name.gsub(/[^A-Za-z ]/, '').gsub(/\s+/, '_')

  if scenario.failed?
    take_screenshot(scenario_name.downcase!, 'failed')
  else
    take_screenshot(scenario_name.downcase!, 'passed')
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rubygene-0.4.0 lib/SkeletonWeb/features/support/hooks.rb
rubygene-0.3.4 lib/SkeletonWeb/features/support/hooks.rb