utensils 1.1.0 → 1.2.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
2
  SHA1:
3
- metadata.gz: 0be446fe5f569dc313dbf45540e3329d3fd35025
4
- data.tar.gz: a92af1394b79bd74086e307e5251548b45034c4b
3
+ metadata.gz: b99cedd617ae4f7fe5e84edc80629687b3102bd2
4
+ data.tar.gz: dcc6a636b57f622d663e04bfb3f8a9d59bbe3b19
5
5
  SHA512:
6
- metadata.gz: b2be173cb4837480999ca476fac4daf4a7365f47c7dc4c2f93b37cc7e7b907342d48432b6894e1e0e164ec084e013b7399493092e186f920dcab058ef359a9aa
7
- data.tar.gz: e36373e6932bd71eaf68eb691e5e3a18166975febbbb15a02c1c3a26679b9ff49a70b75fc5170809f3673ec6b5b0fef1c7c52489fdde384ccde2089880daa632
6
+ metadata.gz: 9c251ac8c618adc93778afed84f427028fbdbe23dc6101a0734002e18c4e7b8403348212badd61454c914434b54877e1d8dcade426550feacbbc69771019405a
7
+ data.tar.gz: d8892e67869015207b3aa6de8ec6434351355f80529aae3003bfbbbe7d452971c779af3373a6498b528619e7263c4e0c3542694bf166f90aa43a632925e8b7b1
@@ -10,11 +10,11 @@ module Utensils
10
10
  @page.has_css?("##{@model_id}")
11
11
  end
12
12
 
13
- def failure_message_for_should
13
+ def failure_message
14
14
  "expected #{@page.body} to contain element with id: #{@model_id}"
15
15
  end
16
16
 
17
- def failure_message_for_should_not
17
+ def failure_message_when_negated
18
18
  "expected #{@page.body} to not contain element with id: #{@model_id}"
19
19
  end
20
20
  end
@@ -33,11 +33,11 @@ module Utensils
33
33
  @element[:class] == @class_name
34
34
  end
35
35
 
36
- def failure_message_for_should
36
+ def failure_message
37
37
  "expected #{@element.tag_name} to have class #{@class_name} but had #{@element[:class]}"
38
38
  end
39
39
 
40
- def failure_message_for_should_not
40
+ def failure_message_when_negated
41
41
  "expected #{@element.tag_name} to not have class #{@class_name} but it did"
42
42
  end
43
43
  end
@@ -52,11 +52,11 @@ module Utensils
52
52
  @element[:disabled] == "disabled"
53
53
  end
54
54
 
55
- def failure_message_for_should
55
+ def failure_message
56
56
  "expected #{@element.tag_name} to be disabled but it wasn't"
57
57
  end
58
58
 
59
- def failure_message_for_should_not
59
+ def failure_message_when_negated
60
60
  "expected #{@element.tag_name} not to be disabled but it was"
61
61
  end
62
62
  end
@@ -75,11 +75,11 @@ module Utensils
75
75
  @image.is_a?(String) ? find_by_url : find_dragonfly_image
76
76
  end
77
77
 
78
- def failure_message_for_should
78
+ def failure_message
79
79
  "expected #{@page.body} to contain image: #{@image.inspect}"
80
80
  end
81
81
 
82
- def failure_message_for_should_not
82
+ def failure_message_when_negated
83
83
  "expected #{@page.body} to not contain image: #{@image.inspect}"
84
84
  end
85
85
 
@@ -126,11 +126,11 @@ module Utensils
126
126
  true
127
127
  end
128
128
 
129
- def failure_message_for_should
129
+ def failure_message
130
130
  "expected #{@page.body} to have elements in this order: #{@selectors.inspect}"
131
131
  end
132
132
 
133
- def failure_message_for_should_not
133
+ def failure_message_when_negated
134
134
  "expected #{@page.body} to not have elements in this order: #{@selectors.inspect}"
135
135
  end
136
136
  end
data/lib/utensils/vcr.rb CHANGED
@@ -9,8 +9,6 @@ VCR.configure do |config|
9
9
  end
10
10
 
11
11
  RSpec.configure do |config|
12
- config.treat_symbols_as_metadata_keys_with_true_values = true
13
-
14
12
  config.before(:each, :allow_http) do |example|
15
13
  raise ':allow_http is deprecated, use :vcr instead'
16
14
  end
@@ -1,3 +1,3 @@
1
1
  module Utensils
2
- VERSION = '1.1.0'
2
+ VERSION = '1.2.0'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: utensils
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jens Balvig