lib/gnawrnip/step_screenshot.rb in gnawrnip-0.0.1 vs lib/gnawrnip/step_screenshot.rb in gnawrnip-0.0.2
- old
+ new
@@ -1,19 +1,19 @@
require 'turnip_formatter/step/failure'
module Gnawrnip
module StepScreenshot
#
- # @param [String] png_file base64 encoded
+ # @param [String] gif_file base64 encoded
#
- def self.build(png_file)
- img = '<img src="data:image/png;base64,'
- img += png_file
+ 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[:turnip][:screenshot]
+ example.metadata[:gnawrnip][:screenshot]
end