utensils 3.0.0 → 4.0.0

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
- SHA1:
3
- metadata.gz: 618336c083840946b2fe0d77efa03f488c5b1ba3
4
- data.tar.gz: c24ff82eb8d4273eda35244458a71b03127a7694
2
+ SHA256:
3
+ metadata.gz: e5f730e56aa1441879fabd451ee5d1509cd5e3545f5f37e5d6c59a24524f242a
4
+ data.tar.gz: 3f80d5c630fee1292e914e2e4a4ef4098e757f191074a3fe0d05682a628a6709
5
5
  SHA512:
6
- metadata.gz: 14df6f4de0c05c2b6c5f12fcf18213806d619a3b625ee701ef1be1fccf165f8e544c683d4467f20ff302511860c6f79166e0eb51f6ac1af62c0d1f95f6b046ea
7
- data.tar.gz: aa04fe9655f7f1f10f74ed0c3ddcdb55d107c2381519f5ebc84ecd33453f79b9056edccb36614e4d39ddfac34f2ead7b8d357b1fd45fc298a724e6e3dec65688
6
+ metadata.gz: 69699c6e6ba3da3cf0d872418bf314b3885605cdcef305e7e3412bd2026b1de74c1abaa105562e3c7b31c5d3161b18902db10e7c837758b7a8269016a609b16b
7
+ data.tar.gz: 98547e037db924303c3f1d5cfc858a87f0cb948acddeecfaed6f649622c868b8003a87feebdbf27df66cf672077a09f18be249508b128918d68c373b510232d4
data/README.md CHANGED
@@ -16,7 +16,6 @@ Add this line to your application's Gemfile:
16
16
  ```ruby
17
17
  require 'utensils/capybara_extensions'
18
18
  require 'utensils/capybara_javascript'
19
- require 'utensils/capybara_screenshot'
20
19
  require 'utensils/custom_matchers'
21
20
  require 'utensils/database_cleaner'
22
21
  require 'utensils/email'
@@ -46,11 +45,6 @@ To use Poltegeist with [remote debugging](https://github.com/teampoltergeist/pol
46
45
  POLTERGEIST_DEBUG=1 rspec spec/features/broken_feature_spec.rb
47
46
  ```
48
47
 
49
- ### capybara_screenshot
50
-
51
- Automatically saves an html file viewable at
52
- localhost:3000/tmp/screenshot.html on failing specs
53
-
54
48
  ### custom_matchers
55
49
 
56
50
  A set of convenient matchers for rspec
@@ -94,7 +94,7 @@ module Utensils
94
94
  end
95
95
 
96
96
  def find_lazy_loaded_image
97
- @page.has_css?("img[data-original$='#{@image}']")
97
+ @page.has_css?("img[data-src$='#{@image}']")
98
98
  end
99
99
 
100
100
  def find_dragonfly_image
@@ -48,7 +48,7 @@ module JsonHelpers
48
48
  path.split("/").inject(ruby) do |value, key|
49
49
  case value
50
50
  when Hash
51
- value.fetch(key) { "Couldn't find JSON path #{path}" }
51
+ value.fetch(key) { raise "Couldn't find JSON path #{path}" }
52
52
  when Array
53
53
  raise "Couldn't find JSON path #{path}" unless key =~ /^\d+$/
54
54
  value.fetch(key.to_i) { raise "Couldn't find JSON path #{path}" }
@@ -1,3 +1,3 @@
1
1
  module Utensils
2
- VERSION = "3.0.0"
2
+ VERSION = "4.0.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: utensils
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0
4
+ version: 4.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jens Balvig
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-02-21 00:00:00.000000000 Z
11
+ date: 2020-03-04 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Rspec stuff we use over and over again
14
14
  email:
@@ -25,7 +25,6 @@ files:
25
25
  - lib/utensils.rb
26
26
  - lib/utensils/capybara_extensions.rb
27
27
  - lib/utensils/capybara_javascript.rb
28
- - lib/utensils/capybara_screenshot.rb
29
28
  - lib/utensils/custom_matchers.rb
30
29
  - lib/utensils/database_cleaner.rb
31
30
  - lib/utensils/email.rb
@@ -55,8 +54,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
55
54
  - !ruby/object:Gem::Version
56
55
  version: '0'
57
56
  requirements: []
58
- rubyforge_project:
59
- rubygems_version: 2.6.13
57
+ rubygems_version: 3.0.3
60
58
  signing_key:
61
59
  specification_version: 4
62
60
  summary: Rspec stuff we use over and over again
@@ -1,4 +0,0 @@
1
- require 'capybara-screenshot/rspec'
2
- Capybara.save_path = 'public/tmp'
3
- Capybara::Screenshot::RSpec.add_link_to_screenshot_for_failed_examples = false
4
- Capybara::Screenshot.append_timestamp = false