spreewald 1.9.0 → 1.9.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (35) hide show
  1. checksums.yaml +4 -4
  2. data/lib/spreewald_support/version.rb +1 -1
  3. data/lib/spreewald_support/web_steps_helpers.rb +3 -3
  4. data/tests/rails-2.3/app +1 -0
  5. data/tests/rails-2.3/config/cucumber.yml +1 -0
  6. data/tests/rails-2.3/config/database.yml +1 -0
  7. data/tests/rails-2.3/db +1 -0
  8. data/tests/rails-2.3/features/shared +1 -0
  9. data/tests/rails-2.3/features/support/paths.rb +1 -0
  10. data/tests/rails-2.3/features/support/selectors.rb +1 -0
  11. data/tests/rails-2.3/public +1 -0
  12. data/tests/rails-3.2/capybara-1/app +1 -0
  13. data/tests/rails-3.2/capybara-1/config/cucumber.yml +1 -0
  14. data/tests/rails-3.2/capybara-1/config/database.yml +1 -0
  15. data/tests/rails-3.2/capybara-1/db +1 -0
  16. data/tests/rails-3.2/capybara-1/features/shared +1 -0
  17. data/tests/rails-3.2/capybara-1/features/support/paths.rb +1 -0
  18. data/tests/rails-3.2/capybara-1/features/support/selectors.rb +1 -0
  19. data/tests/rails-3.2/capybara-1/public +1 -0
  20. data/tests/rails-3.2/capybara-2/Rakefile +1 -0
  21. data/tests/rails-3.2/capybara-2/app +1 -0
  22. data/tests/rails-3.2/capybara-2/config +1 -0
  23. data/tests/rails-3.2/capybara-2/db +1 -0
  24. data/tests/rails-3.2/capybara-2/features +1 -0
  25. data/tests/rails-3.2/capybara-2/public +1 -0
  26. metadata +29 -3
  27. data/tests/rails-2.3/config/cucumber.yml +0 -2
  28. data/tests/rails-2.3/config/database.yml +0 -3
  29. data/tests/rails-2.3/features/support/paths.rb +0 -16
  30. data/tests/rails-2.3/features/support/selectors.rb +0 -43
  31. data/tests/rails-3.2/capybara-1/config/cucumber.yml +0 -2
  32. data/tests/rails-3.2/capybara-1/config/database.yml +0 -3
  33. data/tests/rails-3.2/capybara-1/features/support/paths.rb +0 -16
  34. data/tests/rails-3.2/capybara-1/features/support/selectors.rb +0 -43
  35. data/tests/rails-3.2/capybara-2/Rakefile +0 -18
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f3c56dd8ef2e393eace954addf7b6666fc03b2e3
4
- data.tar.gz: 6fe8ef731988a0bf65b95c42acbe39b961b4ad0c
3
+ metadata.gz: 55ded3e086740caf6ac28165cfd48086c18c0b22
4
+ data.tar.gz: fffdfd8900911524d7cbe009a6b02dfb9ae8f917
5
5
  SHA512:
6
- metadata.gz: cd7ce50e5243cd94cd94e933516e13137ea1f9cfa2cff24611f797bcdee7c411d94c0ece31a1a27502b07ad075b5bc86ac643f52fe0c108ce2219225922e4354
7
- data.tar.gz: 19e173c078141ddaa7dc4aeecde1c4ee4b1aea0cc50597dc57cc0acc0d361399f70a85e304ce2486f0e7004e9f72f3d43e1841ba87f78ed56cd8f819ac77196d
6
+ metadata.gz: 5bae98637f73c1c5dea74d902e3719664dfcefdb2632625acb60e5c7c754202f076bc437b185993a1ea892570954f03fc090eafd7d7de7488cd3395cfee70f05
7
+ data.tar.gz: 2120c1f99fe262c5b11451205afe7c912725f0353a87e6d5763306c48305a23093c64d8020f2c0f8f8ed79744428d0d8bbcc83e09c7e077efb006842821e5d57
@@ -1,3 +1,3 @@
1
1
  module Spreewald
2
- VERSION = '1.9.0'
2
+ VERSION = '1.9.1'
3
3
  end
@@ -35,7 +35,7 @@ module WebStepsHelpers
35
35
 
36
36
  function findCandidates() {
37
37
  if (jqueryLoaded) {
38
- return $(selector);
38
+ return jQuery(selector);
39
39
  } else {
40
40
  return $$(selector);
41
41
  }
@@ -43,7 +43,7 @@ module WebStepsHelpers
43
43
 
44
44
  function isExactCandidate(candidate) {
45
45
  if (jqueryLoaded) {
46
- return $(candidate).find(selector).length == 0;
46
+ return jQuery(candidate).find(selector).length == 0;
47
47
  } else {
48
48
  return candidate.select(selector).length == 0;
49
49
  }
@@ -51,7 +51,7 @@ module WebStepsHelpers
51
51
 
52
52
  function elementVisible(element) {
53
53
  if (jqueryLoaded) {
54
- return $(element).is(':visible');
54
+ return jQuery(element).is(':visible');
55
55
  } else {
56
56
  return element.offsetWidth > 0 && element.offsetHeight > 0;
57
57
  }
@@ -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/
@@ -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,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spreewald
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.9.0
4
+ version: 1.9.1
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-05-03 00:00:00.000000000 Z
11
+ date: 2017-05-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cucumber
@@ -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
@@ -266,7 +279,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
266
279
  version: '0'
267
280
  requirements: []
268
281
  rubyforge_project:
269
- rubygems_version: 2.4.8
282
+ rubygems_version: 2.6.11
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
-