cucumber-ajaxer 0.0.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/.gitignore +4 -0
- data/.rvmrc +1 -0
- data/Gemfile +4 -0
- data/LICENSE +674 -0
- data/README.md +51 -0
- data/Rakefile +1 -0
- data/cucumber-ajaxer.gemspec +24 -0
- data/gpl.txt +674 -0
- data/lib/cucumber/ajaxer.rb +14 -0
- data/lib/cucumber-ajaxer/version.rb +5 -0
- data/lib/cucumber-ajaxer.rb +7 -0
- metadata +78 -0
data/README.md
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
Cucumber Ajaxer
|
|
2
|
+
===============
|
|
3
|
+
|
|
4
|
+
Cucumber should wait for AJAX calls in @javascript Scenarios
|
|
5
|
+
|
|
6
|
+
## Installation
|
|
7
|
+
|
|
8
|
+
Add this line to your application's Gemfile:
|
|
9
|
+
|
|
10
|
+
gem 'cucumber-ajaxer'
|
|
11
|
+
|
|
12
|
+
And then execute:
|
|
13
|
+
|
|
14
|
+
$ bundle
|
|
15
|
+
|
|
16
|
+
Or install it yourself as:
|
|
17
|
+
|
|
18
|
+
$ gem install cucumber-ajaxer
|
|
19
|
+
|
|
20
|
+
## Usage
|
|
21
|
+
|
|
22
|
+
After adding to your project, add this line to __env.rb__:
|
|
23
|
+
|
|
24
|
+
require 'cucumber/ajaxer'
|
|
25
|
+
|
|
26
|
+
# proTip:
|
|
27
|
+
It's even better if you create a file in features/support/ with that line
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
## TODO:
|
|
31
|
+
|
|
32
|
+
- Activate by default when added to Gemfile
|
|
33
|
+
|
|
34
|
+
## License
|
|
35
|
+
|
|
36
|
+
This project is distributed under the GPL...
|
|
37
|
+
See the LICENSE file for more information, or http://www.gnu.org/licenses/gpl.txt
|
|
38
|
+
|
|
39
|
+
## Contributing
|
|
40
|
+
|
|
41
|
+
1. Fork it
|
|
42
|
+
2. Create your feature branch (`git checkout -b my-new-feature`)
|
|
43
|
+
3. BDD your changes... remember, TEST, TEST, TEST!
|
|
44
|
+
4. Commit your changes (`git commit -am 'Added some feature'`)
|
|
45
|
+
5. Push to the branch (`git push origin my-new-feature`)
|
|
46
|
+
6. Create new Pull Request
|
|
47
|
+
|
|
48
|
+
## Thanks to:
|
|
49
|
+
|
|
50
|
+
- Original idea was found here:
|
|
51
|
+
http://stackoverflow.com/questions/7286254/cucumber-wait-for-ajaxsuccess
|
data/Rakefile
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
require "bundler/gem_tasks"
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
|
2
|
+
$:.push File.expand_path('../lib', __FILE__)
|
|
3
|
+
require 'cucumber-ajaxer/version'
|
|
4
|
+
|
|
5
|
+
Gem::Specification.new do |s|
|
|
6
|
+
s.name = 'cucumber-ajaxer'
|
|
7
|
+
s.version = Cucumber::Ajaxer::VERSION
|
|
8
|
+
s.authors = ['Chalo Fernandez']
|
|
9
|
+
s.email = %w('chalofa@gmail.com')
|
|
10
|
+
s.homepage = 'http://github.com/chalofa/cucumber-ajaxer'
|
|
11
|
+
s.summary = 'Cucumber should wait for AJAX calls in @javascript Scenarios'
|
|
12
|
+
s.description = 'Cucumber should wait for AJAX calls in @javascript Scenarios'
|
|
13
|
+
|
|
14
|
+
s.rubyforge_project = 'cucumber-ajaxer'
|
|
15
|
+
|
|
16
|
+
s.files = `git ls-files`.split("\n")
|
|
17
|
+
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
|
18
|
+
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
|
19
|
+
s.require_paths = %w(lib)
|
|
20
|
+
|
|
21
|
+
s.add_dependency 'cucumber'
|
|
22
|
+
|
|
23
|
+
s.add_development_dependency 'rake'
|
|
24
|
+
end
|