Sha256: 83b9f8f2c3c5c7803110166e763292bcf39c7e884cf8e8b56b51286328281458
Contents?: true
Size: 478 Bytes
Versions: 2
Compression:
Stored size: 478 Bytes
Contents
require 'rspec' require 'tempfile' require 'base64' RSpec.configure do |config| config.before(:each, turnip: true) do Gnawrnip::Animation.reset! end config.after(:each, turnip: true) do if example.exception example.metadata[:gnawrnip] = {} # example.metadata[:gnawrnip][:screenshot] = Gnawrnip::Animation.generate image = Gnawrnip::Screenshot.take example.metadata[:gnawrnip][:screenshot] = Base64.encode64(image.read) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
gnawrnip-0.0.3 | lib/gnawrnip/rspec.rb |
gnawrnip-0.0.2 | lib/gnawrnip/rspec.rb |