test-factory 0.1.10 → 0.1.11
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/README.md +4 -0
- data/test-factory.gemspec +1 -1
- metadata +1 -3
- data/test-factory-0.1.8.gem +0 -0
- data/test-factory-0.1.9.gem +0 -0
data/README.md
CHANGED
@@ -191,6 +191,7 @@ follow them probably [smells](http://en.wikipedia.org/wiki/Code_smell), and shou
|
|
191
191
|
* Specifying non-default test variables for data objects is done using key/value hash
|
192
192
|
pairs that are parameters of the data object's CRUD methods. It is _not_
|
193
193
|
done by explicitly assigning values to the instance variables. Examples:
|
194
|
+
|
194
195
|
```ruby
|
195
196
|
# During object creation, following the name of the class
|
196
197
|
@data_object = make DataObject, :attrib1 => "Custom Value 1", :attrib2 => "Custom Value 2" # etc...
|
@@ -204,7 +205,9 @@ follow them probably [smells](http://en.wikipedia.org/wiki/Code_smell), and shou
|
|
204
205
|
@data_object.attrib1="Another Value"
|
205
206
|
|
206
207
|
```
|
208
|
+
|
207
209
|
* Updates to a data object's instance variables is handled *only* by the `set_options` method, *not* explicitly.
|
210
|
+
|
208
211
|
```ruby
|
209
212
|
# This is good
|
210
213
|
def edit opts={}
|
@@ -222,6 +225,7 @@ def edit opts={}
|
|
222
225
|
@value=opts[:value] unless @value==opts[:value]
|
223
226
|
end
|
224
227
|
```
|
228
|
+
|
225
229
|
* The setting of random values for select lists in a data object is determined by passing
|
226
230
|
the symbol `:random` in the instance variable, or as the value in the key/value pair
|
227
231
|
passed in an `#edit` method's `opts` parameter. The `#create` and `#edit` methods will
|
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.1.
|
3
|
+
s.version = '0.1.11'
|
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.1.
|
4
|
+
version: 0.1.11
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -47,8 +47,6 @@ files:
|
|
47
47
|
- lib/test-factory/string_factory.rb
|
48
48
|
- lib/test-factory.rb
|
49
49
|
- README.md
|
50
|
-
- test-factory-0.1.8.gem
|
51
|
-
- test-factory-0.1.9.gem
|
52
50
|
- test-factory.gemspec
|
53
51
|
homepage: https://github.com/rSmart
|
54
52
|
licenses: []
|
data/test-factory-0.1.8.gem
DELETED
Binary file
|
data/test-factory-0.1.9.gem
DELETED
Binary file
|