test-factory 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- test-factory (0.0.3)
4
+ test-factory (0.0.4)
5
5
  watir-webdriver (>= 0.6.1)
6
6
 
7
7
  GEM
@@ -39,15 +39,14 @@ class PageFactory
39
39
  end
40
40
  end
41
41
  alias :value :element
42
- alias :action :element
43
42
  alias :thing :element
44
43
 
45
- def page_method method_name, &block
44
+ def action method_name, &block
46
45
  define_method method_name.to_s do |*thing|
47
46
  Proc.new(&block).call *thing, self
48
47
  end
49
48
  end
50
- alias :pgmd :page_method
49
+ alias :pgmd :action
51
50
 
52
51
  end
53
52
 
@@ -124,4 +124,10 @@ module StringFactory
124
124
  end
125
125
 
126
126
  end
127
+
128
+ # Returns a random hex string that matches an HTML color value.
129
+ def random_hex_color
130
+ "#"+("%06x" % (rand * 0xffffff)).upcase
131
+ end
132
+
127
133
  end
data/test-factory.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  spec = Gem::Specification.new do |s|
2
2
  s.name = 'test-factory'
3
- s.version = '0.0.3'
3
+ s.version = '0.0.4'
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.0.3
4
+ version: 0.0.4
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: 2012-11-09 00:00:00.000000000 Z
12
+ date: 2012-11-13 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: watir-webdriver