Sha256: b5cd1c281fd3b8cdf8738001d6a80f6b8a669a4138bde7cea98a423431c3cb4f
Contents?: true
Size: 470 Bytes
Versions: 1
Compression:
Stored size: 470 Bytes
Contents
require 'turnip_formatter/step/failure' module Gnawrnip module StepScreenshot # # @param [String] png_file base64 encoded # def self.build(png_base64) img = '<img src="data:image/png;base64,' img += png_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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
gnawrnip-0.0.4 | lib/gnawrnip/step_screenshot.rb |