spreewald 1.7.1 → 1.8.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (41) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +5 -4
  3. data/Rakefile +1 -1
  4. data/lib/spreewald/development_steps.rb +11 -14
  5. data/lib/spreewald_support/version.rb +1 -1
  6. data/support/step_definition.rb +2 -0
  7. data/tests/rails-2.3/Gemfile.lock +3 -4
  8. data/tests/rails-2.3/app +1 -0
  9. data/tests/rails-2.3/config/cucumber.yml +1 -0
  10. data/tests/rails-2.3/config/database.yml +1 -0
  11. data/tests/rails-2.3/db +1 -0
  12. data/tests/rails-2.3/features/shared +1 -0
  13. data/tests/rails-2.3/features/support/paths.rb +1 -0
  14. data/tests/rails-2.3/features/support/selectors.rb +1 -0
  15. data/tests/rails-2.3/public +1 -0
  16. data/tests/rails-3.2/capybara-1/Gemfile.lock +3 -4
  17. data/tests/rails-3.2/capybara-1/app +1 -0
  18. data/tests/rails-3.2/capybara-1/config/cucumber.yml +1 -0
  19. data/tests/rails-3.2/capybara-1/config/database.yml +1 -0
  20. data/tests/rails-3.2/capybara-1/db +1 -0
  21. data/tests/rails-3.2/capybara-1/features/shared +1 -0
  22. data/tests/rails-3.2/capybara-1/features/support/paths.rb +1 -0
  23. data/tests/rails-3.2/capybara-1/features/support/selectors.rb +1 -0
  24. data/tests/rails-3.2/capybara-1/public +1 -0
  25. data/tests/rails-3.2/capybara-2/Gemfile.lock +2 -3
  26. data/tests/rails-3.2/capybara-2/Rakefile +1 -0
  27. data/tests/rails-3.2/capybara-2/app +1 -0
  28. data/tests/rails-3.2/capybara-2/config +1 -0
  29. data/tests/rails-3.2/capybara-2/db +1 -0
  30. data/tests/rails-3.2/capybara-2/features +1 -0
  31. data/tests/rails-3.2/capybara-2/public +1 -0
  32. metadata +29 -3
  33. data/tests/rails-2.3/config/cucumber.yml +0 -2
  34. data/tests/rails-2.3/config/database.yml +0 -3
  35. data/tests/rails-2.3/features/support/paths.rb +0 -16
  36. data/tests/rails-2.3/features/support/selectors.rb +0 -43
  37. data/tests/rails-3.2/capybara-1/config/cucumber.yml +0 -2
  38. data/tests/rails-3.2/capybara-1/config/database.yml +0 -3
  39. data/tests/rails-3.2/capybara-1/features/support/paths.rb +0 -16
  40. data/tests/rails-3.2/capybara-1/features/support/selectors.rb +0 -43
  41. 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: 5829528c539947d2de1df68cf298d06a4ad3b1d3
4
- data.tar.gz: 3c062ff4459d16b080787f180f0deb2a46398313
3
+ metadata.gz: e1fe123d7a4f0dad221c4368017b50dd654ac0b1
4
+ data.tar.gz: 9f935a997942d4ec34458a4741a27fa04a04d2a9
5
5
  SHA512:
6
- metadata.gz: ed8c364b05f61d8802388f0a1ddedf6c1fbd0195ee4374a8dda6c8214054b8b0aaa0a310ddee97a7b8b9b9d2e069a08fe5d5652600b1d17a06702481bf7c8116
7
- data.tar.gz: 355b316c2f8b3ab8a7ea4765691d7c332bbd58bdf7306f2dcd8a1ce0931972854b832b516af7a19b9796426c23a709e1d41481c8313adba17c72854d91d28c19
6
+ metadata.gz: bbdb9686c3ecf363205233424d492ccd1792381f0d08a65b8b6a3d3a79a104ad172ad95ccdc65310b6477b36447e78ef2f5e8aa8cfc23f87a34a1e8f39a0291e
7
+ data.tar.gz: fb68b75e0e9c849fb88450d26785f9e62dbc3a15abab2a04e3710a763ff93e701ebf08a69eddf4c25123eace08d5374ae18742a8cbd245057cea8a6a12508235
data/README.md CHANGED
@@ -115,13 +115,14 @@ the step definitions.
115
115
 
116
116
  * **Then debugger**
117
117
 
118
- Starts debugger, or Pry if installed
118
+ See "Then console"
119
119
 
120
120
 
121
- * **Then pause**
121
+ * **Then console**
122
122
 
123
- Pauses Cucumber, but not the application (unlike "Then debugger"). From the
124
- test browser, you can interact with your application as you like.
123
+ Pauses test execution and opens an IRB shell. Does not halt the application-
124
+ under-test. (Replaces the "Then debugger" step that has never been adequate
125
+ for its job.)
125
126
 
126
127
 
127
128
  * **AfterStep @slow**
data/Rakefile CHANGED
@@ -20,7 +20,7 @@ task :update_readme do
20
20
  File.open(readme_path, 'w') { |f| f.write(readme) }
21
21
 
22
22
  system "git diff #{readme_path}"
23
- puts '', '> Done (see diff above).'
23
+ puts '', '> Done (diff applied).'
24
24
  end
25
25
 
26
26
  namespace :all do
@@ -5,22 +5,19 @@ Then /^it should work$/ do
5
5
  pending
6
6
  end.overridable
7
7
 
8
- # Starts debugger, or Pry if installed
9
- Then /^debugger$/ do
10
- if binding.respond_to? :pry
11
- binding.pry
12
- else
13
- debugger
14
- end
15
-
16
- true # Ruby will halt in this line
8
+ # See "Then console"
9
+ Then 'debugger' do
10
+ step 'console'
17
11
  end.overridable
18
12
 
19
- # Pauses Cucumber, but not the application (unlike "Then debugger"). From the
20
- # test browser, you can interact with your application as you like.
21
- Then /^pause$/ do
22
- print 'Paused. Continue?'
23
- STDIN.getc
13
+ # Pauses test execution and opens an IRB shell. Does not halt the application-
14
+ # under-test. (Replaces the "Then debugger" step that has never been adequate
15
+ # for its job.)
16
+ Then 'console' do
17
+ require 'irb'
18
+ ARGV.clear # IRB takes ARGV as its own arguments
19
+
20
+ IRB.start
24
21
  end.overridable
25
22
 
26
23
  # Waits 2 seconds after each step
@@ -1,3 +1,3 @@
1
1
  module Spreewald
2
- VERSION = '1.7.1'
2
+ VERSION = '1.8.0'
3
3
  end
@@ -38,6 +38,8 @@ class StepDefinition
38
38
  def pretty_step
39
39
  if kind == 'AfterStep'
40
40
  step[/@\w+/]
41
+ elsif step =~ /^'(.*)'$/ # Surrounded by single quotes
42
+ $1
41
43
  else
42
44
  Parser.human_regex(step)
43
45
  end
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ../..
3
3
  specs:
4
- spreewald (1.5.4)
4
+ spreewald (1.8.0)
5
5
  cucumber
6
6
  cucumber_priority
7
7
 
@@ -37,8 +37,7 @@ GEM
37
37
  term-ansicolor (>= 1.0.6)
38
38
  cucumber-rails (0.3.2)
39
39
  cucumber (>= 0.8.0)
40
- cucumber_priority (0.1.2)
41
- activesupport
40
+ cucumber_priority (0.2.0)
42
41
  cucumber
43
42
  database_cleaner (1.0.1)
44
43
  diff-lcs (1.2.4)
@@ -104,4 +103,4 @@ DEPENDENCIES
104
103
  sqlite3
105
104
 
106
105
  BUNDLED WITH
107
- 1.12.5
106
+ 1.13.7
@@ -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/
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ../../..
3
3
  specs:
4
- spreewald (1.5.4)
4
+ spreewald (1.8.0)
5
5
  cucumber
6
6
  cucumber_priority
7
7
 
@@ -58,8 +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.2)
62
- activesupport
61
+ cucumber_priority (0.2.0)
63
62
  cucumber
64
63
  database_cleaner (1.0.1)
65
64
  diff-lcs (1.2.4)
@@ -169,4 +168,4 @@ DEPENDENCIES
169
168
  sqlite3
170
169
 
171
170
  BUNDLED WITH
172
- 1.12.5
171
+ 1.13.7
@@ -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/
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ../../..
3
3
  specs:
4
- spreewald (1.5.2)
4
+ spreewald (1.8.0)
5
5
  cucumber
6
6
  cucumber_priority
7
7
 
@@ -59,8 +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.2)
63
- activesupport
62
+ cucumber_priority (0.2.0)
64
63
  cucumber
65
64
  database_cleaner (1.0.1)
66
65
  diff-lcs (1.2.4)
@@ -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/
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.7.1
4
+ version: 1.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tobias Kraze
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-12-16 00:00:00.000000000 Z
11
+ date: 2017-02-15 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.5.1
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
-