Cucumber Ajaxer
Cucumber should wait for AJAX calls in @javascript Scenarios
Installation
Add this line to your application's Gemfile:
gem 'cucumber-ajaxer'
And then execute:
$ bundle
Or install it yourself as:
$ gem install cucumber-ajaxer
Usage
After adding to your project, add this line to env.rb:
require 'cucumber-ajaxer'
proTip: It's even better if you create a file in features/support/ with that line
TODO
- Activate by default when added to Gemfile
License
This project is distributed under the GPL...
See the LICENSE file for more information, or http://www.gnu.org/licenses/gpl.txt
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - BDD your changes... remember, TEST, TEST, TEST!
- Commit your changes (
git commit -am 'Added some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request
Credits
Original idea was found here: http://stackoverflow.com/questions/7286254/cucumber-wait-for-ajaxsuccess