Sha256: b30e1542b2490aecdb26465a963b1927d0e61770105857a174b95010ec5bfd88
Contents?: true
Size: 470 Bytes
Versions: 2
Compression:
Stored size: 470 Bytes
Contents
require 'turnip_formatter/step/failure' module Gnawrnip module StepScreenshot # # @param [String] gif_file base64 encoded # def self.build(gif_base64) img = '<img src="data:image/gif;base64,' img += gif_base64 img += '" style="width: 90%; border: 2px solid black;" />' img end end end TurnipFormatter::Step::Failure.add_template :screenshot, Gnawrnip::StepScreenshot do example.metadata[:gnawrnip][:screenshot] end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
gnawrnip-0.0.3 | lib/gnawrnip/step_screenshot.rb |
gnawrnip-0.0.2 | lib/gnawrnip/step_screenshot.rb |