test-factory 0.2.8 → 0.2.9

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- test-factory (0.2.8)
4
+ test-factory (0.2.9)
5
5
  watir-webdriver (>= 0.6.2)
6
6
 
7
7
  GEM
@@ -71,6 +71,16 @@ module StringFactory
71
71
  s.to_s
72
72
  end
73
73
 
74
+ # Returns a String containing a number with two decimal places, for creation
75
+ # of dollar values.
76
+ # @param max [Integer] The highest allowable dollar amount
77
+ # @example
78
+ # random_dollar_value(100) => '44.89'
79
+ #
80
+ def random_dollar_value(max)
81
+ "#{rand(max)}.#{rand(99)}"
82
+ end
83
+
74
84
  # Returns a block of text (of the specified type, see below) containing
75
85
  # the specified number of "words" (each containing between 1 and 16 chars)
76
86
  # randomly spread across the specified number of lines (note that
@@ -1,6 +1,6 @@
1
1
  spec = Gem::Specification.new do |s|
2
2
  s.name = 'test-factory'
3
- s.version = '0.2.8'
3
+ s.version = '0.2.9'
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("**/**/**")
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: test-factory
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.8
4
+ version: 0.2.9
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-06-10 00:00:00.000000000 Z
12
+ date: 2013-06-25 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: watir-webdriver