spreewald 1.11.3 → 1.11.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/lib/spreewald/development_steps.rb +7 -2
- data/lib/spreewald_support/version.rb +1 -1
- data/tests/rails-2.3/app +1 -0
- data/tests/rails-2.3/config/cucumber.yml +1 -0
- data/tests/rails-2.3/config/database.yml +1 -0
- data/tests/rails-2.3/db +1 -0
- data/tests/rails-2.3/features/shared +1 -0
- data/tests/rails-2.3/features/support/paths.rb +1 -0
- data/tests/rails-2.3/features/support/selectors.rb +1 -0
- data/tests/rails-2.3/public +1 -0
- data/tests/rails-3.2/capybara-1/app +1 -0
- data/tests/rails-3.2/capybara-1/config/cucumber.yml +1 -0
- data/tests/rails-3.2/capybara-1/config/database.yml +1 -0
- data/tests/rails-3.2/capybara-1/db +1 -0
- data/tests/rails-3.2/capybara-1/features/shared +1 -0
- data/tests/rails-3.2/capybara-1/features/support/paths.rb +1 -0
- data/tests/rails-3.2/capybara-1/features/support/selectors.rb +1 -0
- data/tests/rails-3.2/capybara-1/public +1 -0
- data/tests/rails-3.2/capybara-2/Rakefile +1 -0
- data/tests/rails-3.2/capybara-2/app +1 -0
- data/tests/rails-3.2/capybara-2/config +1 -0
- data/tests/rails-3.2/capybara-2/db +1 -0
- data/tests/rails-3.2/capybara-2/features +1 -0
- data/tests/rails-3.2/capybara-2/public +1 -0
- metadata +131 -130
- data/tests/rails-2.3/config/cucumber.yml +0 -2
- data/tests/rails-2.3/config/database.yml +0 -3
- data/tests/rails-2.3/features/support/paths.rb +0 -16
- data/tests/rails-2.3/features/support/selectors.rb +0 -46
- data/tests/rails-3.2/capybara-1/config/cucumber.yml +0 -2
- data/tests/rails-3.2/capybara-1/config/database.yml +0 -3
- data/tests/rails-3.2/capybara-1/features/support/paths.rb +0 -16
- data/tests/rails-3.2/capybara-1/features/support/selectors.rb +0 -46
- data/tests/rails-3.2/capybara-2/Rakefile +0 -18
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 9dd38e30102ef82ca70f07af852748ec745b4d85f223053c11172351adf48fdf
|
4
|
+
data.tar.gz: 3e322dcab69b09467df6fe498f0adcf06e1f17854388d0e1aae94c74dfc98eea
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: c6c021e203d69e4a476e398b09b56f73f4e4a8791b82accb9e05c9b57f7efbccacf8078144dadca85509983399a9fb7cdc1da56e29af9b7d9eea2a83f7c98726
|
7
|
+
data.tar.gz: da417acfae08616fa722d3ef3ef6eb161d9268674dbabb568e832ee6703f229140dacc1cfa83aa27d38bdd408fe08f41bdcce95f8e4773b6825498686a7c028e
|
@@ -7,8 +7,7 @@ end.overridable
|
|
7
7
|
|
8
8
|
# nodoc
|
9
9
|
Then 'debugger' do
|
10
|
-
|
11
|
-
step 'console'
|
10
|
+
step 'console' # Alias
|
12
11
|
end.overridable
|
13
12
|
|
14
13
|
# Pauses test execution and opens an IRB shell with current context. Does not halt the application-
|
@@ -18,6 +17,11 @@ Then 'console' do
|
|
18
17
|
require 'irb'
|
19
18
|
ARGV.clear # IRB takes ARGV as its own arguments
|
20
19
|
|
20
|
+
# `source` is defined by Capybara as a shortcut to `page.source`. IRB tries to
|
21
|
+
# create an alias with the same name and fails with a warning. To avoid this,
|
22
|
+
# we remove the alias here.
|
23
|
+
undef :source
|
24
|
+
|
21
25
|
# We adapted the steps of IRB.run
|
22
26
|
# https://github.com/ruby/ruby/blob/c08f7b80889b531865e74bc5f573df8fa27f2088/lib/irb.rb#L418
|
23
27
|
# with injected workspace. See https://github.com/makandra/spreewald/issues/77 for reasons.
|
@@ -26,6 +30,7 @@ Then 'console' do
|
|
26
30
|
|
27
31
|
workspace = IRB::WorkSpace.new(binding)
|
28
32
|
irb = IRB::Irb.new(workspace)
|
33
|
+
irb.context.prompt_mode = :SIMPLE
|
29
34
|
|
30
35
|
IRB.conf[:MAIN_CONTEXT] = irb.context
|
31
36
|
|
data/tests/rails-2.3/app
ADDED
@@ -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
|
data/tests/rails-2.3/db
ADDED
@@ -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/
|
@@ -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/
|
@@ -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/
|
metadata
CHANGED
@@ -1,140 +1,125 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: spreewald
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
prerelease:
|
6
|
-
segments:
|
7
|
-
- 1
|
8
|
-
- 11
|
9
|
-
- 3
|
10
|
-
version: 1.11.3
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.11.4
|
11
5
|
platform: ruby
|
12
|
-
authors:
|
6
|
+
authors:
|
13
7
|
- Tobias Kraze
|
14
8
|
autorequire:
|
15
9
|
bindir: bin
|
16
10
|
cert_chain: []
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
- !ruby/object:Gem::Dependency
|
11
|
+
date: 2018-04-06 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
21
14
|
name: cucumber
|
22
|
-
|
23
|
-
|
24
|
-
none: false
|
25
|
-
requirements:
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
26
17
|
- - ">="
|
27
|
-
- !ruby/object:Gem::Version
|
28
|
-
|
29
|
-
segments:
|
30
|
-
- 0
|
31
|
-
version: "0"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
32
20
|
type: :runtime
|
33
|
-
version_requirements: *id001
|
34
|
-
- !ruby/object:Gem::Dependency
|
35
|
-
name: cucumber_priority
|
36
21
|
prerelease: false
|
37
|
-
|
38
|
-
|
39
|
-
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: cucumber_priority
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
40
31
|
- - ">="
|
41
|
-
- !ruby/object:Gem::Version
|
42
|
-
hash: 19
|
43
|
-
segments:
|
44
|
-
- 0
|
45
|
-
- 3
|
46
|
-
- 0
|
32
|
+
- !ruby/object:Gem::Version
|
47
33
|
version: 0.3.0
|
48
34
|
type: :runtime
|
49
|
-
version_requirements: *id002
|
50
|
-
- !ruby/object:Gem::Dependency
|
51
|
-
name: bundler
|
52
35
|
prerelease: false
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 0.3.0
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: bundler
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '1.11'
|
63
48
|
type: :development
|
64
|
-
version_requirements: *id003
|
65
|
-
- !ruby/object:Gem::Dependency
|
66
|
-
name: rake
|
67
49
|
prerelease: false
|
68
|
-
|
69
|
-
|
70
|
-
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '1.11'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rake
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
71
59
|
- - ">="
|
72
|
-
- !ruby/object:Gem::Version
|
73
|
-
|
74
|
-
segments:
|
75
|
-
- 0
|
76
|
-
version: "0"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
77
62
|
type: :development
|
78
|
-
version_requirements: *id004
|
79
|
-
- !ruby/object:Gem::Dependency
|
80
|
-
name: pry
|
81
63
|
prerelease: false
|
82
|
-
|
83
|
-
|
84
|
-
requirements:
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
85
66
|
- - ">="
|
86
|
-
- !ruby/object:Gem::Version
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: pry
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
91
76
|
type: :development
|
92
|
-
version_requirements: *id005
|
93
|
-
- !ruby/object:Gem::Dependency
|
94
|
-
name: aruba
|
95
77
|
prerelease: false
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: aruba
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
106
89
|
version: 0.10.2
|
107
90
|
type: :development
|
108
|
-
version_requirements: *id006
|
109
|
-
- !ruby/object:Gem::Dependency
|
110
|
-
name: rspec
|
111
91
|
prerelease: false
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: 0.10.2
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: rspec
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - "~>"
|
102
|
+
- !ruby/object:Gem::Version
|
122
103
|
version: 3.4.0
|
123
104
|
type: :development
|
124
|
-
|
125
|
-
|
126
|
-
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - "~>"
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: 3.4.0
|
111
|
+
description: A collection of cucumber steps we use in our projects, including steps
|
112
|
+
to check HTML, tables, emails and some utility methods.
|
113
|
+
email:
|
127
114
|
- tobias@kraze.eu
|
128
|
-
executables:
|
115
|
+
executables:
|
129
116
|
- spreewald
|
130
117
|
extensions: []
|
131
|
-
|
132
118
|
extra_rdoc_files: []
|
133
|
-
|
134
|
-
|
135
|
-
- .
|
136
|
-
- .
|
137
|
-
- .ruby-version
|
119
|
+
files:
|
120
|
+
- ".gitignore"
|
121
|
+
- ".rspec"
|
122
|
+
- ".ruby-version"
|
138
123
|
- Gemfile
|
139
124
|
- Gemfile.lock
|
140
125
|
- LICENSE
|
@@ -175,6 +160,7 @@ files:
|
|
175
160
|
- tests/rails-2.3/Gemfile
|
176
161
|
- tests/rails-2.3/Gemfile.lock
|
177
162
|
- tests/rails-2.3/Rakefile
|
163
|
+
- tests/rails-2.3/app
|
178
164
|
- tests/rails-2.3/config/boot.rb
|
179
165
|
- tests/rails-2.3/config/cucumber.yml
|
180
166
|
- tests/rails-2.3/config/database.yml
|
@@ -188,9 +174,12 @@ files:
|
|
188
174
|
- tests/rails-2.3/config/initializers/session_store.rb
|
189
175
|
- tests/rails-2.3/config/preinitializer.rb
|
190
176
|
- tests/rails-2.3/config/routes.rb
|
177
|
+
- tests/rails-2.3/db
|
178
|
+
- tests/rails-2.3/features/shared
|
191
179
|
- tests/rails-2.3/features/support/env.rb
|
192
180
|
- tests/rails-2.3/features/support/paths.rb
|
193
181
|
- tests/rails-2.3/features/support/selectors.rb
|
182
|
+
- tests/rails-2.3/public
|
194
183
|
- tests/rails-2.3/scripts/generate
|
195
184
|
- tests/rails-3.2/.DS_Store
|
196
185
|
- tests/rails-3.2/capybara-1/.firefox-version
|
@@ -198,6 +187,7 @@ files:
|
|
198
187
|
- tests/rails-3.2/capybara-1/Gemfile
|
199
188
|
- tests/rails-3.2/capybara-1/Gemfile.lock
|
200
189
|
- tests/rails-3.2/capybara-1/Rakefile
|
190
|
+
- tests/rails-3.2/capybara-1/app
|
201
191
|
- tests/rails-3.2/capybara-1/config/application.rb
|
202
192
|
- tests/rails-3.2/capybara-1/config/boot.rb
|
203
193
|
- tests/rails-3.2/capybara-1/config/cucumber.yml
|
@@ -209,15 +199,23 @@ files:
|
|
209
199
|
- tests/rails-3.2/capybara-1/config/initializers/secret_token.rb
|
210
200
|
- tests/rails-3.2/capybara-1/config/initializers/session_store.rb
|
211
201
|
- tests/rails-3.2/capybara-1/config/routes.rb
|
202
|
+
- tests/rails-3.2/capybara-1/db
|
203
|
+
- tests/rails-3.2/capybara-1/features/shared
|
212
204
|
- tests/rails-3.2/capybara-1/features/support/env.rb
|
213
205
|
- tests/rails-3.2/capybara-1/features/support/paths.rb
|
214
206
|
- tests/rails-3.2/capybara-1/features/support/selectors.rb
|
207
|
+
- tests/rails-3.2/capybara-1/public
|
215
208
|
- tests/rails-3.2/capybara-2/.firefox-version
|
216
209
|
- tests/rails-3.2/capybara-2/.ruby-version
|
217
210
|
- tests/rails-3.2/capybara-2/Gemfile
|
218
211
|
- tests/rails-3.2/capybara-2/Gemfile.lock
|
219
212
|
- tests/rails-3.2/capybara-2/Rakefile
|
213
|
+
- tests/rails-3.2/capybara-2/app
|
214
|
+
- tests/rails-3.2/capybara-2/config
|
220
215
|
- tests/rails-3.2/capybara-2/config.ru
|
216
|
+
- tests/rails-3.2/capybara-2/db
|
217
|
+
- tests/rails-3.2/capybara-2/features
|
218
|
+
- tests/rails-3.2/capybara-2/public
|
221
219
|
- tests/rails-3.2/capybara-2/script/cucumber
|
222
220
|
- tests/rails-3.2/capybara-2/script/rails
|
223
221
|
- tests/shared/app/controllers/application_controller.rb
|
@@ -255,44 +253,36 @@ files:
|
|
255
253
|
- tests/shared/public/favicon.ico
|
256
254
|
- tests/shared/public/javascripts/jquery-1.7.2.min.js
|
257
255
|
homepage: https://github.com/makandra/spreewald
|
258
|
-
licenses:
|
256
|
+
licenses:
|
259
257
|
- MIT
|
258
|
+
metadata: {}
|
260
259
|
post_install_message:
|
261
260
|
rdoc_options: []
|
262
|
-
|
263
|
-
require_paths:
|
261
|
+
require_paths:
|
264
262
|
- lib
|
265
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
266
|
-
|
267
|
-
requirements:
|
263
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
264
|
+
requirements:
|
268
265
|
- - ">="
|
269
|
-
- !ruby/object:Gem::Version
|
270
|
-
|
271
|
-
|
272
|
-
|
273
|
-
version: "0"
|
274
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
275
|
-
none: false
|
276
|
-
requirements:
|
266
|
+
- !ruby/object:Gem::Version
|
267
|
+
version: '0'
|
268
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
269
|
+
requirements:
|
277
270
|
- - ">="
|
278
|
-
- !ruby/object:Gem::Version
|
279
|
-
|
280
|
-
segments:
|
281
|
-
- 0
|
282
|
-
version: "0"
|
271
|
+
- !ruby/object:Gem::Version
|
272
|
+
version: '0'
|
283
273
|
requirements: []
|
284
|
-
|
285
274
|
rubyforge_project:
|
286
|
-
rubygems_version:
|
275
|
+
rubygems_version: 2.7.6
|
287
276
|
signing_key:
|
288
|
-
specification_version:
|
277
|
+
specification_version: 4
|
289
278
|
summary: Collection of useful cucumber steps.
|
290
|
-
test_files:
|
279
|
+
test_files:
|
291
280
|
- tests/rails-2.3/.firefox-version
|
292
281
|
- tests/rails-2.3/.ruby-version
|
293
282
|
- tests/rails-2.3/Gemfile
|
294
283
|
- tests/rails-2.3/Gemfile.lock
|
295
284
|
- tests/rails-2.3/Rakefile
|
285
|
+
- tests/rails-2.3/app
|
296
286
|
- tests/rails-2.3/config/boot.rb
|
297
287
|
- tests/rails-2.3/config/cucumber.yml
|
298
288
|
- tests/rails-2.3/config/database.yml
|
@@ -306,9 +296,12 @@ test_files:
|
|
306
296
|
- tests/rails-2.3/config/initializers/session_store.rb
|
307
297
|
- tests/rails-2.3/config/preinitializer.rb
|
308
298
|
- tests/rails-2.3/config/routes.rb
|
299
|
+
- tests/rails-2.3/db
|
300
|
+
- tests/rails-2.3/features/shared
|
309
301
|
- tests/rails-2.3/features/support/env.rb
|
310
302
|
- tests/rails-2.3/features/support/paths.rb
|
311
303
|
- tests/rails-2.3/features/support/selectors.rb
|
304
|
+
- tests/rails-2.3/public
|
312
305
|
- tests/rails-2.3/scripts/generate
|
313
306
|
- tests/rails-3.2/.DS_Store
|
314
307
|
- tests/rails-3.2/capybara-1/.firefox-version
|
@@ -316,6 +309,7 @@ test_files:
|
|
316
309
|
- tests/rails-3.2/capybara-1/Gemfile
|
317
310
|
- tests/rails-3.2/capybara-1/Gemfile.lock
|
318
311
|
- tests/rails-3.2/capybara-1/Rakefile
|
312
|
+
- tests/rails-3.2/capybara-1/app
|
319
313
|
- tests/rails-3.2/capybara-1/config/application.rb
|
320
314
|
- tests/rails-3.2/capybara-1/config/boot.rb
|
321
315
|
- tests/rails-3.2/capybara-1/config/cucumber.yml
|
@@ -327,15 +321,23 @@ test_files:
|
|
327
321
|
- tests/rails-3.2/capybara-1/config/initializers/secret_token.rb
|
328
322
|
- tests/rails-3.2/capybara-1/config/initializers/session_store.rb
|
329
323
|
- tests/rails-3.2/capybara-1/config/routes.rb
|
324
|
+
- tests/rails-3.2/capybara-1/db
|
325
|
+
- tests/rails-3.2/capybara-1/features/shared
|
330
326
|
- tests/rails-3.2/capybara-1/features/support/env.rb
|
331
327
|
- tests/rails-3.2/capybara-1/features/support/paths.rb
|
332
328
|
- tests/rails-3.2/capybara-1/features/support/selectors.rb
|
329
|
+
- tests/rails-3.2/capybara-1/public
|
333
330
|
- tests/rails-3.2/capybara-2/.firefox-version
|
334
331
|
- tests/rails-3.2/capybara-2/.ruby-version
|
335
332
|
- tests/rails-3.2/capybara-2/Gemfile
|
336
333
|
- tests/rails-3.2/capybara-2/Gemfile.lock
|
337
334
|
- tests/rails-3.2/capybara-2/Rakefile
|
335
|
+
- tests/rails-3.2/capybara-2/app
|
336
|
+
- tests/rails-3.2/capybara-2/config
|
338
337
|
- tests/rails-3.2/capybara-2/config.ru
|
338
|
+
- tests/rails-3.2/capybara-2/db
|
339
|
+
- tests/rails-3.2/capybara-2/features
|
340
|
+
- tests/rails-3.2/capybara-2/public
|
339
341
|
- tests/rails-3.2/capybara-2/script/cucumber
|
340
342
|
- tests/rails-3.2/capybara-2/script/rails
|
341
343
|
- tests/shared/app/controllers/application_controller.rb
|
@@ -372,4 +374,3 @@ test_files:
|
|
372
374
|
- tests/shared/features/support/selectors.rb
|
373
375
|
- tests/shared/public/favicon.ico
|
374
376
|
- tests/shared/public/javascripts/jquery-1.7.2.min.js
|
375
|
-
has_rdoc:
|
@@ -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,46 +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
|
-
when /^the table row containing "(.+?)"$/
|
18
|
-
all('tr').detect { |tr| tr.text.include? $1 } || raise("Could not find tr containing #{$1.inspect}")
|
19
|
-
|
20
|
-
# Add more mappings here.
|
21
|
-
# Here is an example that pulls values out of the Regexp:
|
22
|
-
#
|
23
|
-
# when /^the (notice|error|info) flash$/
|
24
|
-
# ".flash.#{$1}"
|
25
|
-
|
26
|
-
# You can also return an array to use a different selector
|
27
|
-
# type, like:
|
28
|
-
#
|
29
|
-
# when /the header/
|
30
|
-
# [:xpath, "//header"]
|
31
|
-
|
32
|
-
# This allows you to provide a quoted selector as the scope
|
33
|
-
# for "within" steps as was previously the default for the
|
34
|
-
# web steps:
|
35
|
-
when /^"(.+)"$/
|
36
|
-
$1
|
37
|
-
|
38
|
-
else
|
39
|
-
raise "Can't find mapping from \"#{locator}\" to a selector.\n" +
|
40
|
-
"Now, go and add a mapping in #{__FILE__}"
|
41
|
-
end
|
42
|
-
end
|
43
|
-
|
44
|
-
end
|
45
|
-
|
46
|
-
World(HtmlSelectorsHelpers)
|
@@ -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,46 +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
|
-
when /^the table row containing "(.+?)"$/
|
18
|
-
all('tr').detect { |tr| tr.text.include? $1 } || raise("Could not find tr containing #{$1.inspect}")
|
19
|
-
|
20
|
-
# Add more mappings here.
|
21
|
-
# Here is an example that pulls values out of the Regexp:
|
22
|
-
#
|
23
|
-
# when /^the (notice|error|info) flash$/
|
24
|
-
# ".flash.#{$1}"
|
25
|
-
|
26
|
-
# You can also return an array to use a different selector
|
27
|
-
# type, like:
|
28
|
-
#
|
29
|
-
# when /the header/
|
30
|
-
# [:xpath, "//header"]
|
31
|
-
|
32
|
-
# This allows you to provide a quoted selector as the scope
|
33
|
-
# for "within" steps as was previously the default for the
|
34
|
-
# web steps:
|
35
|
-
when /^"(.+)"$/
|
36
|
-
$1
|
37
|
-
|
38
|
-
else
|
39
|
-
raise "Can't find mapping from \"#{locator}\" to a selector.\n" +
|
40
|
-
"Now, go and add a mapping in #{__FILE__}"
|
41
|
-
end
|
42
|
-
end
|
43
|
-
|
44
|
-
end
|
45
|
-
|
46
|
-
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
|
-
|