Sha256: e69f32bd6672f87ce90f271e4bdeb32a8d64006cb38efc8534a5031048b0b5f1

Contents?: true

Size: 303 Bytes

Versions: 1

Compression:

Stored size: 303 Bytes

Contents

if defined?(Capybara::Session)
  Capybara::Session.send(:include, Capybara::Animate)
  Before("@javascript") do |scenario|
    page.recorder = Capybara::Animate::GifRecorder.new("html-report/"+scenario.name)
  end

  After do |scenario|
    page.recorder.add(page)
    page.recorder.generate!
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
capybara-animate-0.1.0 lib/capybara/animate/hooks/cucumber.rb