https://bugzilla.wikimedia.org/show_bug.cgi?id=56243

--- Comment #9 from Dan Duvall <[email protected]> ---
We could reimplement `#pending` in a world helper module and rescue/re-raise
the `Cucumber::Pending` exception as something else.

module MediawikiSelenium::Pending
  class Failure < StandardError; end

  def pending(*args)
    super
  rescue Cucumber::Pending => e
    if block_given?
      raise Failure, e.message
    else
      raise e
    end
  end
end

World(MediawikiSelenium::Pending)

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to