cios_helpers 0.0.2 → 0.0.3
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 +4 -4
- data/lib/cios_helpers/version.rb +1 -1
- data/lib/cios_helpers.rb +7 -7
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1ba32397e2ab8887a313db3ff724cf54f59a9879
|
4
|
+
data.tar.gz: 370f204b1b23797a17484fa4b31c8721a6f6dd6e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7eb19c2f326a764c365c5a7ca0a182063e7a2cfe8b7a3b6a66c74eac6d87cbd6879fd60991bbe4005e4108cc039dd039355f1ef171a73a099b7add2fca3cc2d7
|
7
|
+
data.tar.gz: 451e6603d609ef698c619568b70833d97eba18ef1fba0dc9c72a0b130fdacd2ec015e41b341afcf757c3f7a550fd3c1cd158b039abf66b709d413dfb8e7717c3
|
data/lib/cios_helpers/version.rb
CHANGED
data/lib/cios_helpers.rb
CHANGED
@@ -3,9 +3,9 @@ require "calabash-cucumber/ibase"
|
|
3
3
|
|
4
4
|
module CiosHelpers
|
5
5
|
|
6
|
+
# Performs a lambda action until the element appears.
|
7
|
+
# The default action is to do nothing.
|
6
8
|
def until_element_exists opts = {}
|
7
|
-
'''Performs a lambda action until the element appears.
|
8
|
-
The default action is to do nothing.'''
|
9
9
|
raise "No element given." if opts[:element].nil?
|
10
10
|
timeout = opts[:timeout] || 10
|
11
11
|
action = opts[:action] || lambda { ; }
|
@@ -14,9 +14,9 @@ module CiosHelpers
|
|
14
14
|
end
|
15
15
|
end
|
16
16
|
|
17
|
+
# Performs a lambda action once the element exists.
|
18
|
+
# The default behavior is to touch the specified element.
|
17
19
|
def once_element_exists opts = {}
|
18
|
-
'''Performs a lambda action once the element exists.
|
19
|
-
The default behavior is to touch the specified element.'''
|
20
20
|
raise "No element given." if opts[:element].nil?
|
21
21
|
timeout = opts[:timeout] || 10
|
22
22
|
action = opts[:action] || lambda { touch opts[:element] }
|
@@ -24,10 +24,10 @@ module CiosHelpers
|
|
24
24
|
action.call
|
25
25
|
end
|
26
26
|
|
27
|
+
# Pass an array of query elements. Determines the
|
28
|
+
# correct trait for page objects that can have multiple
|
29
|
+
# acceptable traits.
|
27
30
|
def multiple_traits opts = {}
|
28
|
-
'''Pass an array of query elements. Determines the
|
29
|
-
correct trait for page objects that can have multiple
|
30
|
-
acceptable traits.'''
|
31
31
|
timeout = opts[:timeout] || 10
|
32
32
|
traits = opts[:traits] || ["*"]
|
33
33
|
trait = ''
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cios_helpers
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Joshua Escribano
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-01-
|
12
|
+
date: 2014-01-06 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: calabash-cucumber
|
@@ -92,5 +92,6 @@ rubyforge_project:
|
|
92
92
|
rubygems_version: 2.1.10
|
93
93
|
signing_key:
|
94
94
|
specification_version: 4
|
95
|
-
summary: cios_helpers-0.0.
|
95
|
+
summary: cios_helpers-0.0.3
|
96
96
|
test_files: []
|
97
|
+
has_rdoc:
|