Sha256: 65eb0359bdd4f4d21ee0ed7da2cbc8aaaa105282dbee4671eb93ba67d349ebb3
Contents?: true
Size: 498 Bytes
Versions: 5
Compression:
Stored size: 498 Bytes
Contents
require 'rspec' RSpec.configure do |config| config.before(:all) do Gnawrnip.ready! end config.before(:each, turnip: true) do Gnawrnip.photographer.reset! example.metadata[:gnawrnip] = {} end config.after(:each, turnip: true) do if example.exception Gnawrnip.photographer.take_shot screenshots = Gnawrnip.photographer.frames.compact example.metadata[:gnawrnip][:screenshot] = screenshots else Gnawrnip.photographer.discard! end end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
gnawrnip-0.2.3 | lib/gnawrnip/rspec.rb |
gnawrnip-0.2.2 | lib/gnawrnip/rspec.rb |
gnawrnip-0.2.1 | lib/gnawrnip/rspec.rb |
gnawrnip-0.2.0 | lib/gnawrnip/rspec.rb |
gnawrnip-0.1.3 | lib/gnawrnip/rspec.rb |