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 +4 -4
- data/lib/utensils/custom_matchers.rb +10 -10
- data/lib/utensils/vcr.rb +0 -2
- data/lib/utensils/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b99cedd617ae4f7fe5e84edc80629687b3102bd2
|
4
|
+
data.tar.gz: dcc6a636b57f622d663e04bfb3f8a9d59bbe3b19
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
13
|
+
def failure_message
|
14
14
|
"expected #{@page.body} to contain element with id: #{@model_id}"
|
15
15
|
end
|
16
16
|
|
17
|
-
def
|
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
|
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
|
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
|
55
|
+
def failure_message
|
56
56
|
"expected #{@element.tag_name} to be disabled but it wasn't"
|
57
57
|
end
|
58
58
|
|
59
|
-
def
|
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
|
78
|
+
def failure_message
|
79
79
|
"expected #{@page.body} to contain image: #{@image.inspect}"
|
80
80
|
end
|
81
81
|
|
82
|
-
def
|
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
|
129
|
+
def failure_message
|
130
130
|
"expected #{@page.body} to have elements in this order: #{@selectors.inspect}"
|
131
131
|
end
|
132
132
|
|
133
|
-
def
|
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
data/lib/utensils/version.rb
CHANGED