spreewald 1.9.2 → 1.9.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (43) hide show
  1. checksums.yaml +13 -5
  2. data/lib/spreewald/web_steps.rb +5 -2
  3. data/lib/spreewald_support/version.rb +1 -1
  4. data/tests/rails-2.3/Gemfile.lock +2 -2
  5. data/tests/rails-2.3/app +1 -0
  6. data/tests/rails-2.3/config/cucumber.yml +1 -0
  7. data/tests/rails-2.3/config/database.yml +1 -0
  8. data/tests/rails-2.3/db +1 -0
  9. data/tests/rails-2.3/features/shared +1 -0
  10. data/tests/rails-2.3/features/support/paths.rb +1 -0
  11. data/tests/rails-2.3/features/support/selectors.rb +1 -0
  12. data/tests/rails-2.3/public +1 -0
  13. data/tests/rails-3.2/capybara-1/Gemfile +1 -1
  14. data/tests/rails-3.2/capybara-1/Gemfile.lock +8 -8
  15. data/tests/rails-3.2/capybara-1/app +1 -0
  16. data/tests/rails-3.2/capybara-1/config/cucumber.yml +1 -0
  17. data/tests/rails-3.2/capybara-1/config/database.yml +1 -0
  18. data/tests/rails-3.2/capybara-1/db +1 -0
  19. data/tests/rails-3.2/capybara-1/features/shared +1 -0
  20. data/tests/rails-3.2/capybara-1/features/support/paths.rb +1 -0
  21. data/tests/rails-3.2/capybara-1/features/support/selectors.rb +1 -0
  22. data/tests/rails-3.2/capybara-1/public +1 -0
  23. data/tests/rails-3.2/capybara-2/Gemfile +1 -1
  24. data/tests/rails-3.2/capybara-2/Gemfile.lock +8 -8
  25. data/tests/rails-3.2/capybara-2/Rakefile +1 -0
  26. data/tests/rails-3.2/capybara-2/app +1 -0
  27. data/tests/rails-3.2/capybara-2/config +1 -0
  28. data/tests/rails-3.2/capybara-2/db +1 -0
  29. data/tests/rails-3.2/capybara-2/features +1 -0
  30. data/tests/rails-3.2/capybara-2/public +1 -0
  31. data/tests/shared/app/views/static_pages/within.html.haml +12 -0
  32. data/tests/shared/features/shared/web_steps.feature +4 -0
  33. data/tests/shared/features/support/selectors.rb +3 -0
  34. metadata +48 -22
  35. data/tests/rails-2.3/config/cucumber.yml +0 -2
  36. data/tests/rails-2.3/config/database.yml +0 -3
  37. data/tests/rails-2.3/features/support/paths.rb +0 -16
  38. data/tests/rails-2.3/features/support/selectors.rb +0 -43
  39. data/tests/rails-3.2/capybara-1/config/cucumber.yml +0 -2
  40. data/tests/rails-3.2/capybara-1/config/database.yml +0 -3
  41. data/tests/rails-3.2/capybara-1/features/support/paths.rb +0 -16
  42. data/tests/rails-3.2/capybara-1/features/support/selectors.rb +0 -43
  43. data/tests/rails-3.2/capybara-2/Rakefile +0 -18
checksums.yaml CHANGED
@@ -1,7 +1,15 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: ddb58d920b2d353c52381c3caaf5fda8b0763148
4
- data.tar.gz: 146398ad30ddd32881dd963a917abd893e1b7594
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ ZTUxYzNkMzUyZDU1ZWJiMzlmOTg2OThlODk1ODAwZDUyOTBhOWE3MA==
5
+ data.tar.gz: !binary |-
6
+ MjUyYWM5YWZhYmU2ZjlmOWYwY2Y3ZjAzYjlmOGQyNTA0Mzg4OWY0OA==
5
7
  SHA512:
6
- metadata.gz: c06aa970be4b5fa4202b80179a6c80d01809d00b1d604c523059a65cee76a45ccff82d77434489533e7bec6f1186ce2e8b5811e3cf23b8e1e1a5360d31e4145c
7
- data.tar.gz: 031c387db597d798ede6f040cf268bee5a175bcc44620ca40f71d5be641588acd85a730925d6787cc89e16e491ed89aebb018d83365f5f89c6ec9e4011fef95c
8
+ metadata.gz: !binary |-
9
+ NTdiZjAwYzRmYTg4ZWNkNjE4ZDgzZjI0Y2VkMzdjNTczY2QyYjA1NTg0MGY4
10
+ Mjg0NmY0ODViOTE3YmEwYTM2MDg4ZjVlMTRlODRjOWYzNDQ5ZDM2ZjEyZGE2
11
+ MDgwMzllYTU1MzQzY2VjNGMyMTNlZWZhYTBmZThhNGVmZDE2MmY=
12
+ data.tar.gz: !binary |-
13
+ NzVjYjM2NmFkN2QzYzcxMjM5Y2E2YzM2YTdhYzY4ZDMzOGJmNWMzZDFiNGU0
14
+ MWRlZjUwYTU2NTRhMTM2ZWE1NmE5ZTUzYTUxMDYyYjBjMDBmNTgxNDE1ZTZm
15
+ ZWNmOGNkYjNiMzZmYmFmOGZjODkzZjdhYmI4NDk2YTBjOGM4YjA=
@@ -39,8 +39,11 @@ require 'cgi'
39
39
  #
40
40
  # Then I should see "some text" within ".page_body"
41
41
  When /^(.*) within (.*[^:])$/ do |nested_step, parent|
42
- patiently do
43
- page.should have_css(_selector_for(parent))
42
+ selector = _selector_for(parent)
43
+ if selector.is_a?(String) # could also be a Capybara::Node::Element
44
+ patiently do
45
+ page.should have_css(selector)
46
+ end
44
47
  end
45
48
  with_scope(parent) { step(nested_step) }
46
49
  end.overridable(:priority => 10)
@@ -1,3 +1,3 @@
1
1
  module Spreewald
2
- VERSION = '1.9.2'
2
+ VERSION = '1.9.3'
3
3
  end
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ../..
3
3
  specs:
4
- spreewald (1.9.2)
4
+ spreewald (1.9.3)
5
5
  cucumber
6
6
  cucumber_priority
7
7
 
@@ -94,4 +94,4 @@ DEPENDENCIES
94
94
  sqlite3
95
95
 
96
96
  BUNDLED WITH
97
- 1.13.7
97
+ 1.15.1
@@ -0,0 +1 @@
1
+ tests/rails-2.3/../shared/app
@@ -0,0 +1 @@
1
+ tests/rails-2.3/config/../../shared/config/cucumber.yml
@@ -0,0 +1 @@
1
+ tests/rails-2.3/config/../../shared/config/database.yml
@@ -0,0 +1 @@
1
+ tests/rails-2.3/../shared/db
@@ -0,0 +1 @@
1
+ tests/rails-2.3/features/../../shared/features/shared
@@ -0,0 +1 @@
1
+ tests/rails-2.3/features/support/../../../shared/features/support/paths.rb
@@ -0,0 +1 @@
1
+ tests/rails-2.3/features/support/../../../shared/features/support/selectors.rb
@@ -0,0 +1 @@
1
+ tests/rails-2.3/../shared/public/
@@ -5,7 +5,7 @@ gem "sqlite3", :platform=>:ruby
5
5
  gem 'database_cleaner'
6
6
  gem 'capybara', "~>1" # for ruby 1.8.7 compatibility
7
7
  gem 'cucumber-rails'
8
- gem 'cucumber', '1.3.2' # 1.3.3 uses an API that slimgems does not provide
8
+ gem 'cucumber', '1.3.8'
9
9
  gem 'selenium-webdriver'
10
10
 
11
11
  gem 'rspec-rails'
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ../../..
3
3
  specs:
4
- spreewald (1.9.2)
4
+ spreewald (1.9.3)
5
5
  cucumber
6
6
  cucumber_priority
7
7
 
@@ -46,10 +46,10 @@ GEM
46
46
  xpath (~> 0.1.4)
47
47
  childprocess (0.3.9)
48
48
  ffi (~> 1.0, >= 1.0.11)
49
- cucumber (1.3.2)
49
+ cucumber (1.3.8)
50
50
  builder (>= 2.1.2)
51
51
  diff-lcs (>= 1.1.3)
52
- gherkin (~> 2.12)
52
+ gherkin (~> 2.12.1)
53
53
  multi_json (>= 1.7.5, < 2.0)
54
54
  multi_test (>= 0.0.2)
55
55
  cucumber-rails (1.4.0)
@@ -61,7 +61,7 @@ GEM
61
61
  activesupport
62
62
  cucumber
63
63
  database_cleaner (1.0.1)
64
- diff-lcs (1.2.4)
64
+ diff-lcs (1.3)
65
65
  erubis (2.7.0)
66
66
  ffi (1.8.1)
67
67
  gherkin (2.12.2)
@@ -81,8 +81,8 @@ GEM
81
81
  mime-types (~> 1.16)
82
82
  treetop (~> 1.4.8)
83
83
  mime-types (1.23)
84
- multi_json (1.7.5)
85
- multi_test (0.0.2)
84
+ multi_json (1.12.1)
85
+ multi_test (0.1.2)
86
86
  nokogiri (1.5.9)
87
87
  polyglot (0.3.3)
88
88
  rack (1.4.5)
@@ -148,7 +148,7 @@ PLATFORMS
148
148
 
149
149
  DEPENDENCIES
150
150
  capybara (~> 1)
151
- cucumber (= 1.3.2)
151
+ cucumber (= 1.3.8)
152
152
  cucumber-rails
153
153
  database_cleaner
154
154
  haml-rails
@@ -159,4 +159,4 @@ DEPENDENCIES
159
159
  sqlite3
160
160
 
161
161
  BUNDLED WITH
162
- 1.13.7
162
+ 1.15.3
@@ -0,0 +1 @@
1
+ tests/rails-3.2/capybara-1/../../shared/app
@@ -0,0 +1 @@
1
+ tests/rails-3.2/capybara-1/config/../../../shared/config/cucumber.yml
@@ -0,0 +1 @@
1
+ tests/rails-3.2/capybara-1/config/../../../shared/config/database.yml
@@ -0,0 +1 @@
1
+ tests/rails-3.2/capybara-1/../../shared/db
@@ -0,0 +1 @@
1
+ tests/rails-3.2/capybara-1/features/../../../shared/features/shared
@@ -0,0 +1 @@
1
+ tests/rails-3.2/capybara-1/features/support/../../../../shared/features/support/paths.rb
@@ -0,0 +1 @@
1
+ tests/rails-3.2/capybara-1/features/support/../../../../shared/features/support/selectors.rb
@@ -0,0 +1 @@
1
+ tests/rails-3.2/capybara-1/../../shared/public/
@@ -7,7 +7,7 @@ gem 'database_cleaner'
7
7
  gem 'launchy'
8
8
  gem 'capybara'#, "~>2"
9
9
  gem 'cucumber-rails'
10
- gem 'cucumber'#, '1.3.2' # 1.3.3 uses an API that slimgems does not provide
10
+ gem 'cucumber', '1.3.8'
11
11
  gem 'selenium-webdriver'
12
12
 
13
13
  gem 'rspec-rails'
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ../../..
3
3
  specs:
4
- spreewald (1.9.2)
4
+ spreewald (1.9.3)
5
5
  cucumber
6
6
  cucumber_priority
7
7
 
@@ -47,10 +47,10 @@ GEM
47
47
  childprocess (0.3.9)
48
48
  ffi (~> 1.0, >= 1.0.11)
49
49
  columnize (0.3.6)
50
- cucumber (1.3.2)
50
+ cucumber (1.3.8)
51
51
  builder (>= 2.1.2)
52
52
  diff-lcs (>= 1.1.3)
53
- gherkin (~> 2.12)
53
+ gherkin (~> 2.12.1)
54
54
  multi_json (>= 1.7.5, < 2.0)
55
55
  multi_test (>= 0.0.2)
56
56
  cucumber-rails (1.4.0)
@@ -62,7 +62,7 @@ GEM
62
62
  activesupport
63
63
  cucumber
64
64
  database_cleaner (1.0.1)
65
- diff-lcs (1.2.4)
65
+ diff-lcs (1.3)
66
66
  erubis (2.7.0)
67
67
  ffi (1.9.3)
68
68
  gherkin (2.12.2)
@@ -87,8 +87,8 @@ GEM
87
87
  treetop (~> 1.4.8)
88
88
  mime-types (1.25.1)
89
89
  mini_portile (0.5.2)
90
- multi_json (1.8.4)
91
- multi_test (0.0.2)
90
+ multi_json (1.12.1)
91
+ multi_test (0.1.2)
92
92
  nokogiri (1.6.1)
93
93
  mini_portile (~> 0.5.0)
94
94
  polyglot (0.3.3)
@@ -161,7 +161,7 @@ PLATFORMS
161
161
 
162
162
  DEPENDENCIES
163
163
  capybara
164
- cucumber
164
+ cucumber (= 1.3.8)
165
165
  cucumber-rails
166
166
  database_cleaner
167
167
  haml-rails
@@ -174,4 +174,4 @@ DEPENDENCIES
174
174
  sqlite3
175
175
 
176
176
  BUNDLED WITH
177
- 1.12.5
177
+ 1.15.4
@@ -0,0 +1 @@
1
+ tests/rails-3.2/capybara-2/../capybara-1/Rakefile
@@ -0,0 +1 @@
1
+ tests/rails-3.2/capybara-2/../capybara-1/app
@@ -0,0 +1 @@
1
+ tests/rails-3.2/capybara-2/../capybara-1/config
@@ -0,0 +1 @@
1
+ tests/rails-3.2/capybara-2/../capybara-1/db
@@ -0,0 +1 @@
1
+ tests/rails-3.2/capybara-2/../capybara-1/features
@@ -0,0 +1 @@
1
+ tests/rails-3.2/capybara-2/../../shared/public/
@@ -2,3 +2,15 @@
2
2
  .child1
3
3
 
4
4
  .container2
5
+
6
+ %table
7
+ %tr
8
+ %th Role
9
+ %th Permissions
10
+ %tr
11
+ %td User
12
+ %td None
13
+ %tr
14
+ %td Admin
15
+ %td All
16
+
@@ -130,6 +130,10 @@ Feature: Web steps
130
130
  Then I should see an element ".child1" within ".container1"
131
131
  But I should not see an element ".child1" within ".container2"
132
132
 
133
+ Scenario: /^(.*) within (.*[^:])$/ with a Capybara::Node::Element
134
+ When I go to "/static_pages/within"
135
+ Then I should see "All" within the table row containing "Admin"
136
+
133
137
  Scenario: /^I perform basic authentication as "([^\"]*)\/([^\"]*)" and go to (.*)$/
134
138
  When I go to "/authenticated/page"
135
139
  Then I should see "Access denied"
@@ -14,6 +14,9 @@ module HtmlSelectorsHelpers
14
14
  when /^the timeline?$/
15
15
  '.timeline'
16
16
 
17
+ when /^the table row containing "(.+?)"$/
18
+ all('tr').detect { |tr| tr.text.include? $1 } || raise("Could not find tr containing #{$1.inspect}")
19
+
17
20
  # Add more mappings here.
18
21
  # Here is an example that pulls values out of the Regexp:
19
22
  #
metadata CHANGED
@@ -1,125 +1,125 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spreewald
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.9.2
4
+ version: 1.9.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tobias Kraze
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-06-09 00:00:00.000000000 Z
11
+ date: 2017-08-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cucumber
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ">="
17
+ - - ! '>='
18
18
  - !ruby/object:Gem::Version
19
19
  version: '0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ">="
24
+ - - ! '>='
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: cucumber_priority
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ">="
31
+ - - ! '>='
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ">="
38
+ - - ! '>='
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: bundler
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - "~>"
45
+ - - ~>
46
46
  - !ruby/object:Gem::Version
47
47
  version: '1.11'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - "~>"
52
+ - - ~>
53
53
  - !ruby/object:Gem::Version
54
54
  version: '1.11'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rake
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ">="
59
+ - - ! '>='
60
60
  - !ruby/object:Gem::Version
61
61
  version: '0'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - ">="
66
+ - - ! '>='
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: pry
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - ">="
73
+ - - ! '>='
74
74
  - !ruby/object:Gem::Version
75
75
  version: '0'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - ">="
80
+ - - ! '>='
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: aruba
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - "~>"
87
+ - - ~>
88
88
  - !ruby/object:Gem::Version
89
89
  version: 0.10.2
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - "~>"
94
+ - - ~>
95
95
  - !ruby/object:Gem::Version
96
96
  version: 0.10.2
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: guard-cucumber
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - ">="
101
+ - - ! '>='
102
102
  - !ruby/object:Gem::Version
103
103
  version: '0'
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
- - - ">="
108
+ - - ! '>='
109
109
  - !ruby/object:Gem::Version
110
110
  version: '0'
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: rspec
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
- - - "~>"
115
+ - - ~>
116
116
  - !ruby/object:Gem::Version
117
117
  version: 3.4.0
118
118
  type: :development
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
- - - "~>"
122
+ - - ~>
123
123
  - !ruby/object:Gem::Version
124
124
  version: 3.4.0
125
125
  description: A collection of cucumber steps we use in our projects, including steps
@@ -131,7 +131,7 @@ executables:
131
131
  extensions: []
132
132
  extra_rdoc_files: []
133
133
  files:
134
- - ".gitignore"
134
+ - .gitignore
135
135
  - LICENSE
136
136
  - README.md
137
137
  - Rakefile
@@ -167,6 +167,7 @@ files:
167
167
  - tests/rails-2.3/Gemfile
168
168
  - tests/rails-2.3/Gemfile.lock
169
169
  - tests/rails-2.3/Rakefile
170
+ - tests/rails-2.3/app
170
171
  - tests/rails-2.3/config/boot.rb
171
172
  - tests/rails-2.3/config/cucumber.yml
172
173
  - tests/rails-2.3/config/database.yml
@@ -180,9 +181,12 @@ files:
180
181
  - tests/rails-2.3/config/initializers/session_store.rb
181
182
  - tests/rails-2.3/config/preinitializer.rb
182
183
  - tests/rails-2.3/config/routes.rb
184
+ - tests/rails-2.3/db
185
+ - tests/rails-2.3/features/shared
183
186
  - tests/rails-2.3/features/support/env.rb
184
187
  - tests/rails-2.3/features/support/paths.rb
185
188
  - tests/rails-2.3/features/support/selectors.rb
189
+ - tests/rails-2.3/public
186
190
  - tests/rails-2.3/scripts/generate
187
191
  - tests/rails-3.2/.DS_Store
188
192
  - tests/rails-3.2/capybara-1/.firefox-version
@@ -190,6 +194,7 @@ files:
190
194
  - tests/rails-3.2/capybara-1/Gemfile
191
195
  - tests/rails-3.2/capybara-1/Gemfile.lock
192
196
  - tests/rails-3.2/capybara-1/Rakefile
197
+ - tests/rails-3.2/capybara-1/app
193
198
  - tests/rails-3.2/capybara-1/config/application.rb
194
199
  - tests/rails-3.2/capybara-1/config/boot.rb
195
200
  - tests/rails-3.2/capybara-1/config/cucumber.yml
@@ -201,15 +206,23 @@ files:
201
206
  - tests/rails-3.2/capybara-1/config/initializers/secret_token.rb
202
207
  - tests/rails-3.2/capybara-1/config/initializers/session_store.rb
203
208
  - tests/rails-3.2/capybara-1/config/routes.rb
209
+ - tests/rails-3.2/capybara-1/db
210
+ - tests/rails-3.2/capybara-1/features/shared
204
211
  - tests/rails-3.2/capybara-1/features/support/env.rb
205
212
  - tests/rails-3.2/capybara-1/features/support/paths.rb
206
213
  - tests/rails-3.2/capybara-1/features/support/selectors.rb
214
+ - tests/rails-3.2/capybara-1/public
207
215
  - tests/rails-3.2/capybara-2/.firefox-version
208
216
  - tests/rails-3.2/capybara-2/.ruby-version
209
217
  - tests/rails-3.2/capybara-2/Gemfile
210
218
  - tests/rails-3.2/capybara-2/Gemfile.lock
211
219
  - tests/rails-3.2/capybara-2/Rakefile
220
+ - tests/rails-3.2/capybara-2/app
221
+ - tests/rails-3.2/capybara-2/config
212
222
  - tests/rails-3.2/capybara-2/config.ru
223
+ - tests/rails-3.2/capybara-2/db
224
+ - tests/rails-3.2/capybara-2/features
225
+ - tests/rails-3.2/capybara-2/public
213
226
  - tests/rails-3.2/capybara-2/script/cucumber
214
227
  - tests/rails-3.2/capybara-2/script/rails
215
228
  - tests/shared/app/controllers/application_controller.rb
@@ -256,17 +269,17 @@ require_paths:
256
269
  - lib
257
270
  required_ruby_version: !ruby/object:Gem::Requirement
258
271
  requirements:
259
- - - ">="
272
+ - - ! '>='
260
273
  - !ruby/object:Gem::Version
261
274
  version: '0'
262
275
  required_rubygems_version: !ruby/object:Gem::Requirement
263
276
  requirements:
264
- - - ">="
277
+ - - ! '>='
265
278
  - !ruby/object:Gem::Version
266
279
  version: '0'
267
280
  requirements: []
268
281
  rubyforge_project:
269
- rubygems_version: 2.2.2
282
+ rubygems_version: 2.6.13
270
283
  signing_key:
271
284
  specification_version: 4
272
285
  summary: Collection of useful cucumber steps.
@@ -276,6 +289,7 @@ test_files:
276
289
  - tests/rails-2.3/Gemfile
277
290
  - tests/rails-2.3/Gemfile.lock
278
291
  - tests/rails-2.3/Rakefile
292
+ - tests/rails-2.3/app
279
293
  - tests/rails-2.3/config/boot.rb
280
294
  - tests/rails-2.3/config/cucumber.yml
281
295
  - tests/rails-2.3/config/database.yml
@@ -289,9 +303,12 @@ test_files:
289
303
  - tests/rails-2.3/config/initializers/session_store.rb
290
304
  - tests/rails-2.3/config/preinitializer.rb
291
305
  - tests/rails-2.3/config/routes.rb
306
+ - tests/rails-2.3/db
307
+ - tests/rails-2.3/features/shared
292
308
  - tests/rails-2.3/features/support/env.rb
293
309
  - tests/rails-2.3/features/support/paths.rb
294
310
  - tests/rails-2.3/features/support/selectors.rb
311
+ - tests/rails-2.3/public
295
312
  - tests/rails-2.3/scripts/generate
296
313
  - tests/rails-3.2/.DS_Store
297
314
  - tests/rails-3.2/capybara-1/.firefox-version
@@ -299,6 +316,7 @@ test_files:
299
316
  - tests/rails-3.2/capybara-1/Gemfile
300
317
  - tests/rails-3.2/capybara-1/Gemfile.lock
301
318
  - tests/rails-3.2/capybara-1/Rakefile
319
+ - tests/rails-3.2/capybara-1/app
302
320
  - tests/rails-3.2/capybara-1/config/application.rb
303
321
  - tests/rails-3.2/capybara-1/config/boot.rb
304
322
  - tests/rails-3.2/capybara-1/config/cucumber.yml
@@ -310,15 +328,23 @@ test_files:
310
328
  - tests/rails-3.2/capybara-1/config/initializers/secret_token.rb
311
329
  - tests/rails-3.2/capybara-1/config/initializers/session_store.rb
312
330
  - tests/rails-3.2/capybara-1/config/routes.rb
331
+ - tests/rails-3.2/capybara-1/db
332
+ - tests/rails-3.2/capybara-1/features/shared
313
333
  - tests/rails-3.2/capybara-1/features/support/env.rb
314
334
  - tests/rails-3.2/capybara-1/features/support/paths.rb
315
335
  - tests/rails-3.2/capybara-1/features/support/selectors.rb
336
+ - tests/rails-3.2/capybara-1/public
316
337
  - tests/rails-3.2/capybara-2/.firefox-version
317
338
  - tests/rails-3.2/capybara-2/.ruby-version
318
339
  - tests/rails-3.2/capybara-2/Gemfile
319
340
  - tests/rails-3.2/capybara-2/Gemfile.lock
320
341
  - tests/rails-3.2/capybara-2/Rakefile
342
+ - tests/rails-3.2/capybara-2/app
343
+ - tests/rails-3.2/capybara-2/config
321
344
  - tests/rails-3.2/capybara-2/config.ru
345
+ - tests/rails-3.2/capybara-2/db
346
+ - tests/rails-3.2/capybara-2/features
347
+ - tests/rails-3.2/capybara-2/public
322
348
  - tests/rails-3.2/capybara-2/script/cucumber
323
349
  - tests/rails-3.2/capybara-2/script/rails
324
350
  - tests/shared/app/controllers/application_controller.rb
@@ -1,2 +0,0 @@
1
- default: --require features --require features/shared features/shared
2
-
@@ -1,3 +0,0 @@
1
- test:
2
- adapter: sqlite3
3
- database: ":memory:"
@@ -1,16 +0,0 @@
1
- module NavigationHelpers
2
-
3
- def path_to(page_name)
4
- case page_name
5
- when /^"(.*)"$/
6
- $1
7
-
8
- else
9
- raise "Can't find mapping from \"#{page_name}\" to a path.\n" +
10
- "Now, go and add a mapping in #{__FILE__}"
11
- end
12
- end
13
-
14
- end
15
-
16
- World(NavigationHelpers)
@@ -1,43 +0,0 @@
1
- module HtmlSelectorsHelpers
2
- # Maps a name to a selector. Used primarily by the
3
- #
4
- # When /^(.+) within (.+)$/ do |step, scope|
5
- #
6
- # step definitions in web_steps.rb
7
- #
8
- def selector_for(locator)
9
- case locator
10
-
11
- when /^a panel?$/
12
- '.panel'
13
-
14
- when /^the timeline?$/
15
- '.timeline'
16
-
17
- # Add more mappings here.
18
- # Here is an example that pulls values out of the Regexp:
19
- #
20
- # when /^the (notice|error|info) flash$/
21
- # ".flash.#{$1}"
22
-
23
- # You can also return an array to use a different selector
24
- # type, like:
25
- #
26
- # when /the header/
27
- # [:xpath, "//header"]
28
-
29
- # This allows you to provide a quoted selector as the scope
30
- # for "within" steps as was previously the default for the
31
- # web steps:
32
- when /^"(.+)"$/
33
- $1
34
-
35
- else
36
- raise "Can't find mapping from \"#{locator}\" to a selector.\n" +
37
- "Now, go and add a mapping in #{__FILE__}"
38
- end
39
- end
40
-
41
- end
42
-
43
- World(HtmlSelectorsHelpers)
@@ -1,2 +0,0 @@
1
- default: --require features --require features/shared features/shared
2
-
@@ -1,3 +0,0 @@
1
- test:
2
- adapter: sqlite3
3
- database: ":memory:"
@@ -1,16 +0,0 @@
1
- module NavigationHelpers
2
-
3
- def path_to(page_name)
4
- case page_name
5
- when /^"(.*)"$/
6
- $1
7
-
8
- else
9
- raise "Can't find mapping from \"#{page_name}\" to a path.\n" +
10
- "Now, go and add a mapping in #{__FILE__}"
11
- end
12
- end
13
-
14
- end
15
-
16
- World(NavigationHelpers)
@@ -1,43 +0,0 @@
1
- module HtmlSelectorsHelpers
2
- # Maps a name to a selector. Used primarily by the
3
- #
4
- # When /^(.+) within (.+)$/ do |step, scope|
5
- #
6
- # step definitions in web_steps.rb
7
- #
8
- def selector_for(locator)
9
- case locator
10
-
11
- when /^a panel?$/
12
- '.panel'
13
-
14
- when /^the timeline?$/
15
- '.timeline'
16
-
17
- # Add more mappings here.
18
- # Here is an example that pulls values out of the Regexp:
19
- #
20
- # when /^the (notice|error|info) flash$/
21
- # ".flash.#{$1}"
22
-
23
- # You can also return an array to use a different selector
24
- # type, like:
25
- #
26
- # when /the header/
27
- # [:xpath, "//header"]
28
-
29
- # This allows you to provide a quoted selector as the scope
30
- # for "within" steps as was previously the default for the
31
- # web steps:
32
- when /^"(.+)"$/
33
- $1
34
-
35
- else
36
- raise "Can't find mapping from \"#{locator}\" to a selector.\n" +
37
- "Now, go and add a mapping in #{__FILE__}"
38
- end
39
- end
40
-
41
- end
42
-
43
- World(HtmlSelectorsHelpers)
@@ -1,18 +0,0 @@
1
- #!/usr/bin/env rake
2
- require 'cucumber/rake/task'
3
-
4
- desc 'Default: Run all specs for a specific rails version.'
5
- task :default => :features
6
-
7
- desc 'Run all specs for rails 3.2'
8
- Cucumber::Rake::Task.new(:features) do |t|
9
- feature = if ENV['SINGLE_FEATURE']
10
- "../../shared/features/shared/#{ ENV['SINGLE_FEATURE'] }"
11
- else
12
- 'features/shared'
13
- end
14
-
15
- # tell cucumber where it finds it files (subdirectories and symlinks are confusing it)
16
- t.cucumber_opts = "--require features --require features/shared #{feature}"
17
- end
18
-