README.md in netzke-testing-0.9.0 vs README.md in netzke-testing-0.9.1
- old
+ new
@@ -55,17 +55,26 @@
click button 'Remove all'
wait ->
expectToSee header 'Empty'
done()
+In order to enable these helpers, add the following line somewhere in your `RSpec.configure` block:
+
+ RSpec.configure do |config|
+ Netzke::Testing.rspec_init(config)
+ # ...
+ end
+
Keep in mind the following:
* the current set of helpers is in flux, and may be drastically changed sooner than you may expect
* the helpers directly pollute the `window` namespace; if you decide you're better off without provided helpers,
specify 'no-helpers=true' as an extra URL parameter
-See the [source code](TODO) for currently implemented helpers. Also, refer to other Netzke gems source code (like
-netzke-core and netzke-basepack) to see examples using the helpers.
+See the [source
+code](https://github.com/netzke/netzke-testing/tree/master/app/assets/javascripts/netzke/testing/helpers) for currently
+implemented helpers (TODO: document them). Also, refer to other Netzke gems source code (like netzke-core and
+ netzke-basepack) to see examples using the helpers.
## Testing with selenium webdriver
Generate the `netzke_mocha_spec.rb` file that will automatically run the specs that follow a certain naming convention: