test-factory 0.0.9 → 0.0.9.1

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.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- test-factory (0.0.9)
4
+ test-factory (0.0.9.1)
5
5
  watir-webdriver (>= 0.6.1)
6
6
 
7
7
  GEM
@@ -18,7 +18,7 @@ module DataFactory
18
18
  #
19
19
  # @example
20
20
  #
21
- # requires @site @assignment
21
+ # requires @site, @assignment
22
22
  #
23
23
  def requires(*elements)
24
24
  elements.each do |inst_var|
@@ -27,9 +27,11 @@ module DataFactory
27
27
  end
28
28
 
29
29
  # Transform for use with data object instance variables
30
- # that refer to checkboxes or radio buttons.
30
+ # that refer to checkboxes or radio buttons. Instead of returning a boolean value, it returns
31
+ # the symbols :set or :clear -- This can be useful because those symbols can then in turn
32
+ # be passed directly as methods for updating or validating the checkbox later.
33
+ #
31
34
  # @param checkbox [Watir::CheckBox] The checkbox on the page that you want to inspect
32
- # @returns :set or :clear
33
35
  def checkbox_setting(checkbox)
34
36
  checkbox.set? ? :set : :clear
35
37
  end
@@ -87,7 +87,7 @@ class PageFactory
87
87
  # link("Click Me For Fun!") #=> Creates the methods #click_me_for_fun and #click_me_for_fun_link
88
88
  def link(link_text)
89
89
  element(damballa(link_text+"_link")) { |b| b.link(:text=>link_text) }
90
- action(damballa(link_text)) { |b| b.frm.link(:text=>link_text).click }
90
+ action(damballa(link_text)) { |b| b.link(:text=>link_text).click }
91
91
  end
92
92
 
93
93
  # Use this for buttons that are safe to define by their value attribute.
@@ -103,7 +103,7 @@ class PageFactory
103
103
  # button("Click Me For Fun!") #=> Creates the methods #click_me_for_fun and #click_me_for_fun_button
104
104
  def button(button_text)
105
105
  element(damballa(button_text+"_button")) { |b| b.button(:value=>button_text) }
106
- action(damballa(button_text)) { |b| b.frm.button(:value=>button_text).click }
106
+ action(damballa(button_text)) { |b| b.button(:value=>button_text).click }
107
107
  end
108
108
 
109
109
  # A helper method that converts the passed string into snake case. See the StringFactory
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.9'
3
+ s.version = '0.0.9.1'
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.9
4
+ version: 0.0.9.1
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-12-11 00:00:00.000000000 Z
12
+ date: 2012-12-13 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: watir-webdriver