test-factory 0.4.2 → 0.4.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/test-factory/page_factory.rb +1 -1
- data/lib/test-factory/string_factory.rb +4 -3
- data/test-factory.gemspec +3 -3
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
NDg0Nzk0MDdiOGIyMDAzNjlmMTA1NTUxYTlhN2ViMTViNDRjODMzOQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
YWU1ZTk0YmJlMmVkMzU1MzIwNTVlNzMzNDJhOWFiYjE0ZTQ5OTkwMQ==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
OWI1NTgxMmZkOWU5OTMyNWY5N2I0YjQ5Y2RkZTNlMWMzOTQwOTI2NmY3YjYz
|
10
|
+
OGQzMTU2NzJhMjdkN2U4NTJiMmZiMmMxNTY0MjVmYWFiZmNlZjIzNGY1MGJk
|
11
|
+
MDMwZmVlM2M1NWE3NmYwY2M5Yjk0ODNkMWQ4MzI1ZjZmYTdjMGU=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZWU4N2NjYTQzOGM0NDA4MTU4YTBiOWRlZmE1OWQ2NTE3NjgyODg5YTg0MDcx
|
14
|
+
ZDIwYWQ5ZDgxNjFiZjlhZDkyZjkyMzNhMTdmYTU0ZmE1NjcyNzhlOTJmYTdi
|
15
|
+
NThjN2QzZjEwYmQ3ZTZmMzdhMDgwNWExODQ4NDFkMzM0ZjRmMGM=
|
@@ -92,7 +92,7 @@ module StringFactory
|
|
92
92
|
# random_dollar_value(100) => '44.89'
|
93
93
|
#
|
94
94
|
def random_dollar_value(max)
|
95
|
-
"#{rand(max)}.#{rand(99)}"
|
95
|
+
"#{rand(max)}.#{'%02d'%rand(99)}"
|
96
96
|
end
|
97
97
|
|
98
98
|
# Returns a block of text (of the specified type, see below) containing
|
@@ -153,11 +153,12 @@ module StringFactory
|
|
153
153
|
# @example
|
154
154
|
# damballa("A String of Fun Stuff (for you)") => :a_string_of_fun_stuff_for_you
|
155
155
|
#
|
156
|
-
def
|
156
|
+
def damballa(text)
|
157
157
|
text.gsub(/([+=|\\\.,~@#'"\?`!\{\}\[\]\$%\^&\*\(\)])/, "").
|
158
|
-
gsub(/([-\/\
|
158
|
+
gsub(/([-\/\s])/,"_").
|
159
159
|
downcase.
|
160
160
|
to_sym
|
161
161
|
end
|
162
|
+
module_function :damballa
|
162
163
|
|
163
164
|
end
|
data/test-factory.gemspec
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
spec = Gem::Specification.new do |s|
|
2
2
|
s.name = 'test-factory'
|
3
|
-
s.version = '0.4.
|
3
|
+
s.version = '0.4.3'
|
4
4
|
s.summary = %q{rSmart's framework for creating automated testing scripts}
|
5
5
|
s.description = %q{This gem provides a set of modules and methods to help quickly and DRYly create a test automation framework using Ruby and Watir (or watir-webdriver).}
|
6
6
|
s.files = Dir.glob("**/**/**")
|
7
7
|
s.test_files = Dir.glob("test/*test_rb")
|
8
|
-
s.authors = [
|
9
|
-
s.email = %w{
|
8
|
+
s.authors = ['Abraham Heward']
|
9
|
+
s.email = %w{aheward@rsmart.com}
|
10
10
|
s.homepage = 'https://github.com/rSmart'
|
11
11
|
s.add_dependency 'watir-webdriver', '>= 0.6.4'
|
12
12
|
s.required_ruby_version = '>= 1.9.2'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: test-factory
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Abraham Heward
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2014-02-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: watir-webdriver
|
@@ -27,7 +27,7 @@ dependencies:
|
|
27
27
|
description: This gem provides a set of modules and methods to help quickly and DRYly
|
28
28
|
create a test automation framework using Ruby and Watir (or watir-webdriver).
|
29
29
|
email:
|
30
|
-
-
|
30
|
+
- aheward@rsmart.com
|
31
31
|
executables: []
|
32
32
|
extensions: []
|
33
33
|
extra_rdoc_files: []
|