poltergeist-screenshot_overview 0.1.7 → 0.1.8

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7d5b3a5ccb6e3a9b0b11c759a5ff3ba6e3db249c
4
- data.tar.gz: 286195f97bcd995c36cb3b66da62a6f663c92375
3
+ metadata.gz: d55dfe2d1810db2618c72c957dcc8e43a3649fb4
4
+ data.tar.gz: e27d5ee0e8469ba9b6ca5ce2a261b6e515a48a39
5
5
  SHA512:
6
- metadata.gz: 3bf960c1ebf876dbb373d7c388851b982c8dc7e1b79be6b1ef2af37e52a90b9b5fc8f64247a889e5f9fa368862108733ade8c691c2a92ec96d58978432654de4
7
- data.tar.gz: d42b843a2396e548585b47c4c30be7683998332cb6787d9ad060b307d4a2e3d88c0f331e40b58193ca155c5421346549e3f989f9b7a9f4db5d8041e3a9192214
6
+ metadata.gz: 64af1d99ebddd35de6459781cc9f6b760623497d3877af3a4ee83731792af9c1f5878c763f982fadd2bedc9a50c982620ecdb0d1979dc3fc87006988e1f464ea
7
+ data.tar.gz: 6ed18399397448b422c890e78ae209a6f8193ce479d8859e9bd7916751cd2f3817e58a5b277bf10a7b14476ae9420b7563c5fedc73757aad38ec2d18d71d3213
@@ -46,6 +46,7 @@ module Poltergeist
46
46
  private
47
47
 
48
48
  def make_screenshot(argument)
49
+ return if !defined?(RSpec.current_example)
49
50
  ex = RSpec.current_example
50
51
  if ex && (ex.metadata[:js] || ex.metadata[:screenshot])
51
52
  filename = Manager.instance.add_image_from_rspec(argument, ex, current_path)
@@ -1,5 +1,5 @@
1
1
  module Poltergeist
2
2
  module ScreenshotOverview
3
- VERSION = "0.1.7"
3
+ VERSION = "0.1.8"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: poltergeist-screenshot_overview
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stefan Wienert