nofxx-watircuke 0.3.1 → 0.3.2

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/README.rdoc CHANGED
@@ -27,30 +27,6 @@ cucumber.yml
27
27
  watir: -r features/support/env.rb -r features/support/watir.rb -r features/step_definitions -t watir
28
28
 
29
29
 
30
- support/watir.rb
31
-
32
- require 'watircuke'
33
- Before do
34
- @environment = "http://localhost:3000/
35
- sleep 1
36
- end
37
- # optional
38
- # at_exit do
39
- # @browser.close
40
- # end
41
-
42
-
43
- support/webrat.rb
44
-
45
- require 'webrat'
46
- Webrat.configure do |config|
47
- config.mode = :rails
48
- end
49
- require 'cucumber/rails/rspec'
50
- require 'webrat/core/matchers'
51
- require 'webratcuke'
52
-
53
-
54
30
  support/env.rb
55
31
 
56
32
  ENV["RAILS_ENV"] ||= "cucumber"
@@ -60,6 +36,26 @@ support/env.rb
60
36
  Cucumber::Rails.use_transactional_fixtures
61
37
  Cucumber::Rails.bypass_rescue # Comment out this line if you want Rails own error handling
62
38
 
39
+ if ENV['CUC_ENV'] == 'watir'
40
+ require 'watircuke'
41
+ Before do
42
+ @environment = "http://localhost:3000/
43
+ sleep 1
44
+ end
45
+ # optional
46
+ # at_exit do
47
+ # @browser.close
48
+ # end
49
+ else
50
+ require 'webrat'
51
+ Webrat.configure do |config|
52
+ config.mode = :rails
53
+ end
54
+ require 'cucumber/rails/rspec'
55
+ require 'webrat/core/matchers'
56
+ require 'webratcuke'
57
+ end
58
+
63
59
 
64
60
  == ABOUT
65
61
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.1
1
+ 0.3.2
data/cucumber.yml CHANGED
@@ -1,2 +1,2 @@
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
+ default: CUC_ENV=watir -r features/support/env.rb features -t ~webrat
2
+ webrat: CUC_ENV=webrat -r features/support/env.rb features -t webrat
@@ -1,3 +1,19 @@
1
1
  require 'spec'
2
- #require 'cucumber/rails/rspec'
3
- require 'webrat/core/matchers'
2
+
3
+ if ENV['CUC_ENV'] == 'webrat'
4
+ require 'webrat/core/matchers'
5
+ require File.expand_path(File.dirname(__FILE__) + '/../../lib/webratcuke')
6
+ else
7
+ require File.expand_path(File.dirname(__FILE__) + '/../../lib/watircuke')
8
+
9
+ Before do
10
+ @environment = "http://github.com/"
11
+ # sleep 1
12
+ end
13
+
14
+ # "after all"
15
+ at_exit do
16
+ @browser.close if @browser
17
+ end
18
+
19
+ end
data/watircuke.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{watircuke}
5
- s.version = "0.3.1"
5
+ s.version = "0.3.2"
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"]
@@ -21,8 +21,6 @@ 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",
26
24
  "lib/watircuke.rb",
27
25
  "lib/webratcuke.rb",
28
26
  "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.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rich Downie
@@ -32,8 +32,6 @@ 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
37
35
  - lib/watircuke.rb
38
36
  - lib/webratcuke.rb
39
37
  - spec/spec_helper.rb
@@ -1,11 +0,0 @@
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
@@ -1,2 +0,0 @@
1
- require File.expand_path(File.dirname(__FILE__) + '/../../lib/webratcuke')
2
-