capybara-screenshot-diff 1.0.1 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f506814195be957a571f69a8d333527ffb0821b4b99c622a2c6569c2dd657d84
4
- data.tar.gz: 2a432734a85404b2e45045afd262eed823686d994d9413414b14f5d7e9def15e
3
+ metadata.gz: cbd81a7aa63a3fcfada0a1fd3544d83bf807ac00dd2240233dfe23ecfd105591
4
+ data.tar.gz: '085af6073a2a6908ca4dfa8cb4ef674b0be391f241cea5816e4179bbdcb9e142'
5
5
  SHA512:
6
- metadata.gz: 0c50f7d782931cf98820c994299eee0fa210ae40a224b09b3ad8cee47460d1fbe5e2d89678c8fb95dc7eebd962a3579e25f09a00f3e6eca8cfde0071b08e79f9
7
- data.tar.gz: e707af262c119ce508fab95cbf8749f72e99fd7740aaaa8202099a867b84aff1b3a14ef9a9cb0c3a859461c0c6d6c9a9ebfad79520408b70384f7970d64f8b11
6
+ metadata.gz: db56bcc2c8a2cac4be1190994cd481fe91258e9d6991ec2890f793b8d269ee7f7075ed3604603c501ad5412ab12b95124c4814a372e76b42486341f0e7e57e1f
7
+ data.tar.gz: 421a21ecfb59711a95591a839fa23a1954664b021a634f78801e5b19aaf22520b69741dd4776d1a2a418de803b026487718fb4d05ac9f12c9fde2d6aa5d5d8ad
@@ -59,7 +59,8 @@ module Capybara
59
59
 
60
60
  clas.teardown do
61
61
  if Capybara::Screenshot::Diff.enabled && @test_screenshots
62
- test_screenshot_errors = @test_screenshots.map(&method(:assert_image_not_changed))
62
+ test_screenshot_errors = @test_screenshots
63
+ .map { |caller, name, compare| assert_image_not_changed(caller, name, compare) }
63
64
  test_screenshot_errors.compact!
64
65
  fail(test_screenshot_errors.join("\n\n")) if test_screenshot_errors.any?
65
66
  end
@@ -3,7 +3,7 @@
3
3
  module Capybara
4
4
  module Screenshot
5
5
  module Diff
6
- VERSION = '1.0.1'
6
+ VERSION = '1.0.2'
7
7
  end
8
8
  end
9
9
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capybara-screenshot-diff
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Uwe Kubosch