Sha256: 1d65a19030b5a291c3b98d09713d8b136b99c8281d0504bbd6e4b0f01d08e325

Contents?: true

Size: 391 Bytes

Versions: 3

Compression:

Stored size: 391 Bytes

Contents

module CucumberSpinner

  class CuriousProgressBarFormatter < ProgressBarFormatter

    def failed!
      super
      show_the_page
    end

    def show_the_page
      step_mother.step_match('show me the page').invoke(nil)
    rescue StandardError => e
      puts "Tried to show you the page the page with the error, but it failed due to #{e.class.name}: #{e.message}"
    end

  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
cucumber_spinner-0.2.2 lib/cucumber_spinner/curious_progress_bar_formatter.rb
cucumber_spinner-0.2.1 lib/cucumber_spinner/curious_progress_bar_formatter.rb
cucumber_spinner-0.2.0 lib/cucumber_spinner/curious_progress_bar_formatter.rb