nofxx-watircuke 0.3.0 → 0.3.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.
@@ -1,27 +1,30 @@
1
1
  = Watircuke
2
2
 
3
+ Webrat & Watir Family common (and some cool) steps as a gem.
3
4
 
4
- == INSTALL
5
5
 
6
- Cucumber:
7
- http://wiki.github.com/aslakhellesoy/cucumber/install
6
+ == Install
8
7
 
9
- Watir ~ Firewatir ~ Safariwatir:
10
- http://wtr.rubyforge.org/install.html
8
+ Cucumber:: http://wiki.github.com/aslakhellesoy/cucumber/install
9
+ Watir ~ Firewatir ~ Safariwatir:: http://wtr.rubyforge.org/install.html
11
10
 
12
- Once installed just run "cucumber features" in Safari, Firefox, Watir (see features/support/env.rb)
13
11
 
12
+ == Use
14
13
 
15
- == Rails
14
+ * Remove step_definitions/webrat_steps.rb if you have it.
15
+
16
+ * In the scenarios you want to run watir, just add the @watir tag before.
17
+
18
+ * Run `cucumber` for webrat and `cucumber -p watir` for some Watir =D
19
+
20
+
21
+ == Rails Sample
16
22
 
17
- Supposing your webrat features are on features/plain, Watir on features/watir and
18
- you remove step_definitions/webrat_steps.rb (don't worry, steps will be included),
19
- you can run `cucumber` for plain webrat and `cucumber -p watir` for some Watir =D
20
23
 
21
24
  cucumber.yml
22
25
 
23
- default: -r features/support/env.rb -r features/support/webrat.rb -r features/step_definitions features/plain
24
- watir: -r features/support/env.rb -r features/support/watir.rb -r features/step_definitions features/watir
26
+ default: -r features/support/env.rb -r features/support/webrat.rb -r features/step_definitions
27
+ watir: -r features/support/env.rb -r features/support/watir.rb -r features/step_definitions -t watir
25
28
 
26
29
 
27
30
  support/watir.rb
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.0
1
+ 0.3.1
data/cucumber.yml CHANGED
@@ -1 +1,2 @@
1
- default: -r features/support/env.rb -r features/support/paths.rb features
1
+ default: CUC_ENV=watir -r features/support/env.rb -r features/support/paths.rb -r features/support/watir.rb features
2
+ webrat: CUC_ENV=webrat -r features/support/env.rb -r features/support/paths.rb -r features/support/webrat.rb features -t webrat
@@ -1,8 +1,15 @@
1
- Feature: Github
1
+ Feature: Ajax
2
2
 
3
+ @watir
3
4
  Scenario: ajaxy test
4
5
  Given I am on the watircuke page
5
6
  And I click "download_button"
6
7
  And I wait until "facebox"
7
8
  And I wait until "archives"
8
9
  Then I should see "Download richdownie/watircuke at master "
10
+
11
+ @watir
12
+ Scenario: ajaxy search
13
+ Given I am on bing
14
+ And I fill in "q" with "cucu"
15
+ Then I should see "cucumber"
@@ -1,15 +1,3 @@
1
1
  require 'spec'
2
2
  #require 'cucumber/rails/rspec'
3
3
  require 'webrat/core/matchers'
4
-
5
- require File.expand_path(File.dirname(__FILE__) + '/../../lib/watircuke')
6
-
7
- Before do
8
- @environment = "http://github.com/"
9
- # sleep 1
10
- end
11
-
12
- # "after all"
13
- at_exit do
14
- # @browser.close
15
- end
@@ -10,6 +10,8 @@ module NavigationHelpers
10
10
  @environment + "aslakhellesoy/cucumber/tree/master"
11
11
  when /the homepage/i
12
12
  @environment
13
+ when /bing/i
14
+ "http://bing.com"
13
15
 
14
16
  # Add more page name => path mappings here
15
17
 
@@ -0,0 +1,11 @@
1
+ require File.expand_path(File.dirname(__FILE__) + '/../../lib/watircuke')
2
+
3
+ Before do
4
+ @environment = "http://github.com/"
5
+ # sleep 1
6
+ end
7
+
8
+ # "after all"
9
+ at_exit do
10
+ @browser.close if @browser
11
+ end
@@ -0,0 +1,2 @@
1
+ require File.expand_path(File.dirname(__FILE__) + '/../../lib/webratcuke')
2
+
data/watircuke.gemspec CHANGED
@@ -2,18 +2,18 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{watircuke}
5
- s.version = "0.3.0"
5
+ s.version = "0.3.1"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Rich Downie", "Marcos Piccinini"]
9
- s.date = %q{2009-06-17}
9
+ s.date = %q{2009-06-19}
10
10
  s.email = %q{x@nofxx.com}
11
11
  s.extra_rdoc_files = [
12
- "README"
12
+ "README.rdoc"
13
13
  ]
14
14
  s.files = [
15
15
  ".gitignore",
16
- "README",
16
+ "README.rdoc",
17
17
  "Rakefile",
18
18
  "VERSION",
19
19
  "cucumber.yml",
@@ -21,6 +21,8 @@ Gem::Specification.new do |s|
21
21
  "features/sample.feature",
22
22
  "features/support/env.rb",
23
23
  "features/support/paths.rb",
24
+ "features/support/watir.rb",
25
+ "features/support/webrat.rb",
24
26
  "lib/watircuke.rb",
25
27
  "lib/webratcuke.rb",
26
28
  "spec/spec_helper.rb",
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nofxx-watircuke
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rich Downie
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2009-06-17 00:00:00 -07:00
13
+ date: 2009-06-19 00:00:00 -07:00
14
14
  default_executable:
15
15
  dependencies: []
16
16
 
@@ -21,10 +21,10 @@ executables: []
21
21
  extensions: []
22
22
 
23
23
  extra_rdoc_files:
24
- - README
24
+ - README.rdoc
25
25
  files:
26
26
  - .gitignore
27
- - README
27
+ - README.rdoc
28
28
  - Rakefile
29
29
  - VERSION
30
30
  - cucumber.yml
@@ -32,6 +32,8 @@ files:
32
32
  - features/sample.feature
33
33
  - features/support/env.rb
34
34
  - features/support/paths.rb
35
+ - features/support/watir.rb
36
+ - features/support/webrat.rb
35
37
  - lib/watircuke.rb
36
38
  - lib/webratcuke.rb
37
39
  - spec/spec_helper.rb