README.md in chemistrykit-3.8.1 vs README.md in chemistrykit-3.9.0.rc1
- old
+ new
@@ -1,6 +1,6 @@
-#ChemistryKit 3.8.1 (2013-08-09)
+#ChemistryKit 3.9.0-rc.1 (2013-08-12)
[![Gem Version](https://badge.fury.io/rb/chemistrykit.png)](http://badge.fury.io/rb/chemistrykit) [![Build Status](https://travis-ci.org/arrgyle/chemistrykit.png?branch=develop)](https://travis-ci.org/jrobertfox/chef-broiler-platter) [![Code Climate](https://codeclimate.com/github/arrgyle/chemistrykit.png)](https://codeclimate.com/github/arrgyle/chemistrykit) [![Coverage Status](https://coveralls.io/repos/arrgyle/chemistrykit/badge.png?branch=develop)](https://coveralls.io/r/arrgyle/chemistrykit?branch=develop)
### A simple and opinionated web testing framework for Selenium WebDriver
@@ -131,9 +131,21 @@
Here is a summary of the other methods available:
- `.with(key)` - Load a specific chemist by the key.
- `.with_random(type)` - Load a chemist at random from all those matching `type`
- `.with_first(type)` - Load whatever chemist is first matched by `type`
+- `.and_with(key)` - Adds the chemist found by `key` as a sub-chemist data set to the chemist.
+
+Using `.and_with` lets you mix up various sets of user data. For example:
+
+ @formula_lab.using('my_formula').with('admin1').and_with('sub_account1').mix
+
+Would get you (assuming `sub_account1` has a type of `sub_account`, and a field `my_sub_field`) the ability to do something like this:
+
+ chemist.sub_account.my_sub_field
+
+Inside your formula. COOL!
+
The FormulaLab will handle the heavy lifting of assembling your formula with a driver and correct chemist (if the formula needs one). Also note that the specific instance of chemist is cached so that any changes your formula makes to the chemist is reflected in other formulas that use it.
###Execution Order
Chemistry Kit executes specs in a random order. This is intentional. Knowing the order a spec will be executed in allows for dependencies between them to creep in. Sometimes unintentionally. By having them go in a random order parallelization becomes a much easier.