spreewald 1.5.2 → 1.5.3
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.
- checksums.yaml +7 -0
- data/lib/spreewald/table_steps.rb +13 -2
- data/lib/spreewald_support/version.rb +1 -1
- data/tests/rails-2.3/.ruby-version +1 -0
- data/tests/rails-2.3/Gemfile.lock +2 -2
- 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/.ruby-version +1 -0
- data/tests/rails-3.2/capybara-1/Gemfile.lock +3 -3
- 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/.ruby-version +1 -0
- data/tests/rails-3.2/capybara-2/Gemfile.lock +3 -3
- 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
- data/tests/shared/app/views/tables/table_with_weird_spaces.html.erb +15 -0
- data/tests/shared/features/shared/table_steps.feature +16 -3
- metadata +82 -66
- 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 -43
- 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 -43
- data/tests/rails-3.2/capybara-2/Rakefile +0 -18
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 89386ae251085b4d042a4f14d4277cfcd7527f7b
|
4
|
+
data.tar.gz: 11ce1a4d90bb4bdfe12aa92f24f2a92779af27f2
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 39a64726b72555a439b6b217d95c46e9100ede3d1e33e8c1998b445fb6d61de2e63b2781180edb43335ff229dbc7edd8e3b6c492d5a3ccd37ea8901314455344
|
7
|
+
data.tar.gz: a3bf80eab8d202591a02e03c4f8bba086c507455fd448fc1e6014fcb08586f16c127a6c1d0f5becbb7332038c963458bc3c5a548577bdc1b07e441126fc8e4c0
|
@@ -25,9 +25,20 @@ module TableStepsHelper
|
|
25
25
|
end
|
26
26
|
end
|
27
27
|
|
28
|
+
# Only cross-Ruby way to get a character for its UTF-16 (hex) representation
|
29
|
+
def character(code)
|
30
|
+
[code.to_i(16)].pack('U*')
|
31
|
+
end
|
32
|
+
|
28
33
|
def normalize_content(content)
|
29
|
-
|
30
|
-
|
34
|
+
shy = character("00ad") # soft hyphen
|
35
|
+
nbsp = character("00a0") # non-breaking space
|
36
|
+
zwsp = character("200b") # zero-width space
|
37
|
+
content = content.gsub(/[#{shy}#{zwsp}]/, '')
|
38
|
+
content = content.gsub(/[\r\n\t#{nbsp}]+/, ' ')
|
39
|
+
content = content.gsub(/ {2,}/, ' ')
|
40
|
+
content = content.strip
|
41
|
+
content
|
31
42
|
end
|
32
43
|
|
33
44
|
end
|
@@ -0,0 +1 @@
|
|
1
|
+
1.8.7
|
data/tests/rails-2.3/app
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
../shared/app
|
@@ -0,0 +1 @@
|
|
1
|
+
../../shared/config/cucumber.yml
|
@@ -0,0 +1 @@
|
|
1
|
+
../../shared/config/database.yml
|
data/tests/rails-2.3/db
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
../shared/db
|
@@ -0,0 +1 @@
|
|
1
|
+
../../shared/features/shared
|
@@ -0,0 +1 @@
|
|
1
|
+
../../../shared/features/support/paths.rb
|
@@ -0,0 +1 @@
|
|
1
|
+
../../../shared/features/support/selectors.rb
|
@@ -0,0 +1 @@
|
|
1
|
+
../shared/public/
|
@@ -0,0 +1 @@
|
|
1
|
+
2.1.8
|
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: ../../..
|
3
3
|
specs:
|
4
|
-
spreewald (1.5.
|
4
|
+
spreewald (1.5.2)
|
5
5
|
cucumber
|
6
6
|
cucumber_priority
|
7
7
|
|
@@ -58,7 +58,7 @@ GEM
|
|
58
58
|
cucumber (>= 1.2.0)
|
59
59
|
nokogiri (>= 1.5.0)
|
60
60
|
rails (>= 3.0.0)
|
61
|
-
cucumber_priority (0.1.
|
61
|
+
cucumber_priority (0.1.2)
|
62
62
|
activesupport
|
63
63
|
cucumber
|
64
64
|
database_cleaner (1.0.1)
|
@@ -169,4 +169,4 @@ DEPENDENCIES
|
|
169
169
|
sqlite3
|
170
170
|
|
171
171
|
BUNDLED WITH
|
172
|
-
1.
|
172
|
+
1.12.5
|
@@ -0,0 +1 @@
|
|
1
|
+
../../shared/app
|
@@ -0,0 +1 @@
|
|
1
|
+
../../../shared/config/cucumber.yml
|
@@ -0,0 +1 @@
|
|
1
|
+
../../../shared/config/database.yml
|
@@ -0,0 +1 @@
|
|
1
|
+
../../shared/db
|
@@ -0,0 +1 @@
|
|
1
|
+
../../../shared/features/shared
|
@@ -0,0 +1 @@
|
|
1
|
+
../../../../shared/features/support/paths.rb
|
@@ -0,0 +1 @@
|
|
1
|
+
../../../../shared/features/support/selectors.rb
|
@@ -0,0 +1 @@
|
|
1
|
+
../../shared/public/
|
@@ -0,0 +1 @@
|
|
1
|
+
2.1.8
|
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: ../../..
|
3
3
|
specs:
|
4
|
-
spreewald (1.5.
|
4
|
+
spreewald (1.5.2)
|
5
5
|
cucumber
|
6
6
|
cucumber_priority
|
7
7
|
|
@@ -59,7 +59,7 @@ GEM
|
|
59
59
|
cucumber (>= 1.2.0)
|
60
60
|
nokogiri (>= 1.5.0)
|
61
61
|
rails (>= 3.0.0)
|
62
|
-
cucumber_priority (0.1.
|
62
|
+
cucumber_priority (0.1.2)
|
63
63
|
activesupport
|
64
64
|
cucumber
|
65
65
|
database_cleaner (1.0.1)
|
@@ -176,4 +176,4 @@ DEPENDENCIES
|
|
176
176
|
sqlite3
|
177
177
|
|
178
178
|
BUNDLED WITH
|
179
|
-
1.
|
179
|
+
1.12.5
|
@@ -0,0 +1 @@
|
|
1
|
+
../capybara-1/Rakefile
|
@@ -0,0 +1 @@
|
|
1
|
+
../capybara-1/app
|
@@ -0,0 +1 @@
|
|
1
|
+
../capybara-1/config
|
@@ -0,0 +1 @@
|
|
1
|
+
../capybara-1/db
|
@@ -0,0 +1 @@
|
|
1
|
+
../capybara-1/features
|
@@ -0,0 +1 @@
|
|
1
|
+
../../shared/public/
|
@@ -0,0 +1,15 @@
|
|
1
|
+
<table>
|
2
|
+
<tr>
|
3
|
+
<td> one two </td> <!-- padded with spaces -->
|
4
|
+
<td>three four</td> <!-- multiple spaces in a row -->
|
5
|
+
</tr>
|
6
|
+
<tr>
|
7
|
+
<td>five
|
8
|
+
six</td> <!-- line break -->
|
9
|
+
<td>seven eight</td> <!-- non-breaking space -->
|
10
|
+
</tr>
|
11
|
+
<tr>
|
12
|
+
<td>nine​ten</td> <!-- zero-width space -->
|
13
|
+
<td>eleven­twelve</td> <!-- soft hyphen -->
|
14
|
+
</tr>
|
15
|
+
</table>
|
@@ -1,10 +1,8 @@
|
|
1
1
|
Feature: Table steps
|
2
2
|
|
3
|
-
Background:
|
4
|
-
When I go to "/tables/table1"
|
5
|
-
|
6
3
|
|
7
4
|
Scenario: should see a table with the following rows
|
5
|
+
When I go to "/tables/table1"
|
8
6
|
Then the following multiline step should succeed:
|
9
7
|
"""
|
10
8
|
Then I should see a table with the following rows:
|
@@ -85,7 +83,16 @@ Feature: Table steps
|
|
85
83
|
"""
|
86
84
|
|
87
85
|
|
86
|
+
Scenario: Cell content normalization
|
87
|
+
When I go to "/tables/table_with_weird_spaces"
|
88
|
+
Then I should see a table with the following rows:
|
89
|
+
| one two | three four |
|
90
|
+
| five six | seven eight |
|
91
|
+
| nineten | eleventwelve |
|
92
|
+
|
93
|
+
|
88
94
|
Scenario: should not see a table with the following rows
|
95
|
+
When I go to "/tables/table1"
|
89
96
|
Then the following multiline step should fail:
|
90
97
|
"""
|
91
98
|
Then I should not see a table with the following rows:
|
@@ -103,6 +110,7 @@ Feature: Table steps
|
|
103
110
|
|
104
111
|
|
105
112
|
Scenario: should see a table with exactly the following rows
|
113
|
+
When I go to "/tables/table1"
|
106
114
|
Then the following multiline step should succeed:
|
107
115
|
"""
|
108
116
|
Then I should see a table with exactly the following rows:
|
@@ -132,6 +140,7 @@ Feature: Table steps
|
|
132
140
|
"""
|
133
141
|
|
134
142
|
Scenario: should not see a table with exactly the following rows
|
143
|
+
When I go to "/tables/table1"
|
135
144
|
Then the following multiline step should fail:
|
136
145
|
"""
|
137
146
|
Then I should not see a table with exactly the following rows:
|
@@ -162,6 +171,7 @@ Feature: Table steps
|
|
162
171
|
|
163
172
|
|
164
173
|
Scenario: should see a table with the following rows in any order
|
174
|
+
When I go to "/tables/table1"
|
165
175
|
Then the following multiline step should succeed:
|
166
176
|
"""
|
167
177
|
Then I should see a table with the following rows in any order:
|
@@ -198,6 +208,7 @@ Feature: Table steps
|
|
198
208
|
|
199
209
|
|
200
210
|
Scenario: should not see a table with the following rows in any order
|
211
|
+
When I go to "/tables/table1"
|
201
212
|
Then the following multiline step should fail:
|
202
213
|
"""
|
203
214
|
Then I should not see a table with the following rows in any order:
|
@@ -234,6 +245,7 @@ Feature: Table steps
|
|
234
245
|
|
235
246
|
|
236
247
|
Scenario: should see a table with exactly the following rows in any order
|
248
|
+
When I go to "/tables/table1"
|
237
249
|
Then the following multiline step should succeed:
|
238
250
|
"""
|
239
251
|
Then I should see a table with exactly the following rows in any order:
|
@@ -257,6 +269,7 @@ Feature: Table steps
|
|
257
269
|
|
258
270
|
|
259
271
|
Scenario: should not see a table with exactly the following rows in any order
|
272
|
+
When I go to "/tables/table1"
|
260
273
|
Then the following multiline step should fail:
|
261
274
|
"""
|
262
275
|
Then I should not see a table with exactly the following rows in any order:
|
metadata
CHANGED
@@ -1,61 +1,53 @@
|
|
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
|
-
- 5
|
9
|
-
- 2
|
10
|
-
version: 1.5.2
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.5.3
|
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: 2016-07-27 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
|
-
|
43
|
-
segments:
|
44
|
-
- 0
|
45
|
-
version: "0"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
46
34
|
type: :runtime
|
47
|
-
|
48
|
-
|
49
|
-
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
description: A collection of cucumber steps we use in our projects, including steps
|
42
|
+
to check HTML, tables, emails and some utility methods.
|
43
|
+
email:
|
50
44
|
- tobias@kraze.eu
|
51
|
-
executables:
|
45
|
+
executables:
|
52
46
|
- spreewald
|
53
47
|
extensions: []
|
54
|
-
|
55
48
|
extra_rdoc_files: []
|
56
|
-
|
57
|
-
|
58
|
-
- .gitignore
|
49
|
+
files:
|
50
|
+
- ".gitignore"
|
59
51
|
- LICENSE
|
60
52
|
- README.md
|
61
53
|
- Rakefile
|
@@ -81,9 +73,11 @@ files:
|
|
81
73
|
- spreewald.gemspec
|
82
74
|
- support/documentation_generator.rb
|
83
75
|
- tests/rails-2.3/.firefox-version
|
76
|
+
- tests/rails-2.3/.ruby-version
|
84
77
|
- tests/rails-2.3/Gemfile
|
85
78
|
- tests/rails-2.3/Gemfile.lock
|
86
79
|
- tests/rails-2.3/Rakefile
|
80
|
+
- tests/rails-2.3/app
|
87
81
|
- tests/rails-2.3/config/boot.rb
|
88
82
|
- tests/rails-2.3/config/cucumber.yml
|
89
83
|
- tests/rails-2.3/config/database.yml
|
@@ -97,15 +91,20 @@ files:
|
|
97
91
|
- tests/rails-2.3/config/initializers/session_store.rb
|
98
92
|
- tests/rails-2.3/config/preinitializer.rb
|
99
93
|
- tests/rails-2.3/config/routes.rb
|
94
|
+
- tests/rails-2.3/db
|
95
|
+
- tests/rails-2.3/features/shared
|
100
96
|
- tests/rails-2.3/features/support/env.rb
|
101
97
|
- tests/rails-2.3/features/support/paths.rb
|
102
98
|
- tests/rails-2.3/features/support/selectors.rb
|
99
|
+
- tests/rails-2.3/public
|
103
100
|
- tests/rails-2.3/scripts/generate
|
104
101
|
- tests/rails-3.2/.DS_Store
|
105
102
|
- tests/rails-3.2/capybara-1/.firefox-version
|
103
|
+
- tests/rails-3.2/capybara-1/.ruby-version
|
106
104
|
- tests/rails-3.2/capybara-1/Gemfile
|
107
105
|
- tests/rails-3.2/capybara-1/Gemfile.lock
|
108
106
|
- tests/rails-3.2/capybara-1/Rakefile
|
107
|
+
- tests/rails-3.2/capybara-1/app
|
109
108
|
- tests/rails-3.2/capybara-1/config/application.rb
|
110
109
|
- tests/rails-3.2/capybara-1/config/boot.rb
|
111
110
|
- tests/rails-3.2/capybara-1/config/cucumber.yml
|
@@ -117,14 +116,23 @@ files:
|
|
117
116
|
- tests/rails-3.2/capybara-1/config/initializers/secret_token.rb
|
118
117
|
- tests/rails-3.2/capybara-1/config/initializers/session_store.rb
|
119
118
|
- tests/rails-3.2/capybara-1/config/routes.rb
|
119
|
+
- tests/rails-3.2/capybara-1/db
|
120
|
+
- tests/rails-3.2/capybara-1/features/shared
|
120
121
|
- tests/rails-3.2/capybara-1/features/support/env.rb
|
121
122
|
- tests/rails-3.2/capybara-1/features/support/paths.rb
|
122
123
|
- tests/rails-3.2/capybara-1/features/support/selectors.rb
|
124
|
+
- tests/rails-3.2/capybara-1/public
|
123
125
|
- tests/rails-3.2/capybara-2/.firefox-version
|
126
|
+
- tests/rails-3.2/capybara-2/.ruby-version
|
124
127
|
- tests/rails-3.2/capybara-2/Gemfile
|
125
128
|
- tests/rails-3.2/capybara-2/Gemfile.lock
|
126
129
|
- tests/rails-3.2/capybara-2/Rakefile
|
130
|
+
- tests/rails-3.2/capybara-2/app
|
131
|
+
- tests/rails-3.2/capybara-2/config
|
127
132
|
- tests/rails-3.2/capybara-2/config.ru
|
133
|
+
- tests/rails-3.2/capybara-2/db
|
134
|
+
- tests/rails-3.2/capybara-2/features
|
135
|
+
- tests/rails-3.2/capybara-2/public
|
128
136
|
- tests/rails-3.2/capybara-2/script/cucumber
|
129
137
|
- tests/rails-3.2/capybara-2/script/rails
|
130
138
|
- tests/shared/app/controllers/application_controller.rb
|
@@ -146,6 +154,7 @@ files:
|
|
146
154
|
- tests/shared/app/views/static_pages/visibility.html.haml
|
147
155
|
- tests/shared/app/views/static_pages/within.html.haml
|
148
156
|
- tests/shared/app/views/tables/table1.html.haml
|
157
|
+
- tests/shared/app/views/tables/table_with_weird_spaces.html.erb
|
149
158
|
- tests/shared/config/cucumber.yml
|
150
159
|
- tests/shared/config/database.yml
|
151
160
|
- tests/shared/db/migrate/.gitignore
|
@@ -160,43 +169,36 @@ files:
|
|
160
169
|
- tests/shared/public/favicon.ico
|
161
170
|
- tests/shared/public/javascripts/jquery-1.7.2.min.js
|
162
171
|
homepage: https://github.com/makandra/spreewald
|
163
|
-
licenses:
|
172
|
+
licenses:
|
164
173
|
- MIT
|
174
|
+
metadata: {}
|
165
175
|
post_install_message:
|
166
176
|
rdoc_options: []
|
167
|
-
|
168
|
-
require_paths:
|
177
|
+
require_paths:
|
169
178
|
- lib
|
170
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
171
|
-
|
172
|
-
requirements:
|
179
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
180
|
+
requirements:
|
173
181
|
- - ">="
|
174
|
-
- !ruby/object:Gem::Version
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
version: "0"
|
179
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
180
|
-
none: false
|
181
|
-
requirements:
|
182
|
+
- !ruby/object:Gem::Version
|
183
|
+
version: '0'
|
184
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
185
|
+
requirements:
|
182
186
|
- - ">="
|
183
|
-
- !ruby/object:Gem::Version
|
184
|
-
|
185
|
-
segments:
|
186
|
-
- 0
|
187
|
-
version: "0"
|
187
|
+
- !ruby/object:Gem::Version
|
188
|
+
version: '0'
|
188
189
|
requirements: []
|
189
|
-
|
190
190
|
rubyforge_project:
|
191
|
-
rubygems_version:
|
191
|
+
rubygems_version: 2.5.1
|
192
192
|
signing_key:
|
193
|
-
specification_version:
|
193
|
+
specification_version: 4
|
194
194
|
summary: Collection of useful cucumber steps.
|
195
|
-
test_files:
|
195
|
+
test_files:
|
196
196
|
- tests/rails-2.3/.firefox-version
|
197
|
+
- tests/rails-2.3/.ruby-version
|
197
198
|
- tests/rails-2.3/Gemfile
|
198
199
|
- tests/rails-2.3/Gemfile.lock
|
199
200
|
- tests/rails-2.3/Rakefile
|
201
|
+
- tests/rails-2.3/app
|
200
202
|
- tests/rails-2.3/config/boot.rb
|
201
203
|
- tests/rails-2.3/config/cucumber.yml
|
202
204
|
- tests/rails-2.3/config/database.yml
|
@@ -210,15 +212,20 @@ test_files:
|
|
210
212
|
- tests/rails-2.3/config/initializers/session_store.rb
|
211
213
|
- tests/rails-2.3/config/preinitializer.rb
|
212
214
|
- tests/rails-2.3/config/routes.rb
|
215
|
+
- tests/rails-2.3/db
|
216
|
+
- tests/rails-2.3/features/shared
|
213
217
|
- tests/rails-2.3/features/support/env.rb
|
214
218
|
- tests/rails-2.3/features/support/paths.rb
|
215
219
|
- tests/rails-2.3/features/support/selectors.rb
|
220
|
+
- tests/rails-2.3/public
|
216
221
|
- tests/rails-2.3/scripts/generate
|
217
222
|
- tests/rails-3.2/.DS_Store
|
218
223
|
- tests/rails-3.2/capybara-1/.firefox-version
|
224
|
+
- tests/rails-3.2/capybara-1/.ruby-version
|
219
225
|
- tests/rails-3.2/capybara-1/Gemfile
|
220
226
|
- tests/rails-3.2/capybara-1/Gemfile.lock
|
221
227
|
- tests/rails-3.2/capybara-1/Rakefile
|
228
|
+
- tests/rails-3.2/capybara-1/app
|
222
229
|
- tests/rails-3.2/capybara-1/config/application.rb
|
223
230
|
- tests/rails-3.2/capybara-1/config/boot.rb
|
224
231
|
- tests/rails-3.2/capybara-1/config/cucumber.yml
|
@@ -230,14 +237,23 @@ test_files:
|
|
230
237
|
- tests/rails-3.2/capybara-1/config/initializers/secret_token.rb
|
231
238
|
- tests/rails-3.2/capybara-1/config/initializers/session_store.rb
|
232
239
|
- tests/rails-3.2/capybara-1/config/routes.rb
|
240
|
+
- tests/rails-3.2/capybara-1/db
|
241
|
+
- tests/rails-3.2/capybara-1/features/shared
|
233
242
|
- tests/rails-3.2/capybara-1/features/support/env.rb
|
234
243
|
- tests/rails-3.2/capybara-1/features/support/paths.rb
|
235
244
|
- tests/rails-3.2/capybara-1/features/support/selectors.rb
|
245
|
+
- tests/rails-3.2/capybara-1/public
|
236
246
|
- tests/rails-3.2/capybara-2/.firefox-version
|
247
|
+
- tests/rails-3.2/capybara-2/.ruby-version
|
237
248
|
- tests/rails-3.2/capybara-2/Gemfile
|
238
249
|
- tests/rails-3.2/capybara-2/Gemfile.lock
|
239
250
|
- tests/rails-3.2/capybara-2/Rakefile
|
251
|
+
- tests/rails-3.2/capybara-2/app
|
252
|
+
- tests/rails-3.2/capybara-2/config
|
240
253
|
- tests/rails-3.2/capybara-2/config.ru
|
254
|
+
- tests/rails-3.2/capybara-2/db
|
255
|
+
- tests/rails-3.2/capybara-2/features
|
256
|
+
- tests/rails-3.2/capybara-2/public
|
241
257
|
- tests/rails-3.2/capybara-2/script/cucumber
|
242
258
|
- tests/rails-3.2/capybara-2/script/rails
|
243
259
|
- tests/shared/app/controllers/application_controller.rb
|
@@ -259,6 +275,7 @@ test_files:
|
|
259
275
|
- tests/shared/app/views/static_pages/visibility.html.haml
|
260
276
|
- tests/shared/app/views/static_pages/within.html.haml
|
261
277
|
- tests/shared/app/views/tables/table1.html.haml
|
278
|
+
- tests/shared/app/views/tables/table_with_weird_spaces.html.erb
|
262
279
|
- tests/shared/config/cucumber.yml
|
263
280
|
- tests/shared/config/database.yml
|
264
281
|
- tests/shared/db/migrate/.gitignore
|
@@ -272,4 +289,3 @@ test_files:
|
|
272
289
|
- tests/shared/features/support/selectors.rb
|
273
290
|
- tests/shared/public/favicon.ico
|
274
291
|
- tests/shared/public/javascripts/jquery-1.7.2.min.js
|
275
|
-
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,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,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
|
-
|