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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ODUxNjgzOGE5NDBjM2ViYzliZDAyZjhhZmM0YzFkNThiMWJlY2NjYg==
4
+ NDg0Nzk0MDdiOGIyMDAzNjlmMTA1NTUxYTlhN2ViMTViNDRjODMzOQ==
5
5
  data.tar.gz: !binary |-
6
- ZTNmZGUxYTE1NGFmNDBmY2FiNDlmNzMyOWYzMTI0NmUwNmE4NWNiNA==
6
+ YWU1ZTk0YmJlMmVkMzU1MzIwNTVlNzMzNDJhOWFiYjE0ZTQ5OTkwMQ==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- ZGU5ZDcxZGVjOWU3MDU0MDIwMjZmYWI3MDdlZWRhMzc3OTdlYjdhZjVhNDUw
10
- NWVjNGQ5MDQzNDI2ODA2MTMwZTVlNTNkOGZiYzIxMzY3YTFiNWUyYzkwODBm
11
- YmU1MTEzOWY3ZTUxYjE0NGRmZTU4NzAyZDc4NmFiZDc4YjQyMjg=
9
+ OWI1NTgxMmZkOWU5OTMyNWY5N2I0YjQ5Y2RkZTNlMWMzOTQwOTI2NmY3YjYz
10
+ OGQzMTU2NzJhMjdkN2U4NTJiMmZiMmMxNTY0MjVmYWFiZmNlZjIzNGY1MGJk
11
+ MDMwZmVlM2M1NWE3NmYwY2M5Yjk0ODNkMWQ4MzI1ZjZmYTdjMGU=
12
12
  data.tar.gz: !binary |-
13
- MDBiZTI5ZjIzMTk2ODdmNmIxNmExYmZmMTkzN2UyYTljYmU2YjU2ZDUwYzg3
14
- ZDM5Y2ZhN2U2YWFmNzU1ZjhjMzhlOTJjZDJlNGYyNjFiYWU5NDhiZDljZDg0
15
- YzI3YTk2OWY1ZGNiZmU0MDFmNjA4NWRhNDUxYTkyNmU3ODk0N2M=
13
+ ZWU4N2NjYTQzOGM0NDA4MTU4YTBiOWRlZmE1OWQ2NTE3NjgyODg5YTg0MDcx
14
+ ZDIwYWQ5ZDgxNjFiZjlhZDkyZjkyMzNhMTdmYTU0ZmE1NjcyNzhlOTJmYTdi
15
+ NThjN2QzZjEwYmQ3ZTZmMzdhMDgwNWExODQ4NDFkMzM0ZjRmMGM=
@@ -152,7 +152,7 @@ class PageFactory
152
152
  # module for more info.
153
153
  #
154
154
  def damballa(text)
155
- StringFactory::damballa(text)
155
+ StringFactory.damballa(text)
156
156
  end
157
157
 
158
158
  def elementize(type, text, *alias_name)
@@ -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 self.damballa(text)
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.2'
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 = ["Abraham Heward"]
9
- s.email = %w{"aheward@rsmart.com"}
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.2
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: 2013-12-09 00:00:00.000000000 Z
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
- - ! '"aheward@rsmart.com"'
30
+ - aheward@rsmart.com
31
31
  executables: []
32
32
  extensions: []
33
33
  extra_rdoc_files: []