spreewald 1.10.4 → 1.11.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: a56ae836d090d3a11d01813dc3d1e572b54c9bf4
4
- data.tar.gz: ea6fa4a96b01754599719fa3f55c351b6c1fb470
2
+ SHA256:
3
+ metadata.gz: b13fd213c765ec60a934cc3b947f16899c03de1026a4fc01692dc9712d72ac8c
4
+ data.tar.gz: ea047bcedf22080ec24172e3a5db606fbcb9b8baef2ee913daaa454b1463b541
5
5
  SHA512:
6
- metadata.gz: c2631111b37eaf9afe44029d8f2031973bf9aff7ffa76dd2fccf1f10c1425fc17f29260f0246b3e0ce1778dd8aaf9dc6d01b3eee09ee5a60e310c1c1d6ef1b6c
7
- data.tar.gz: b937ee0ef4c223d4f6ae434cb144bc13494624f157dd22d2f7ed1c8d5a89c23f55bf715a402f42cd33d070373d8260af02c88d58d2a026499c7f30236def80ab
6
+ metadata.gz: 813894fe085ebf3def4c20e1b07d9c0f4c4e2bdb19f12eadee2a04aa2b2ece28beb3fb0a60907eb1736edf0590f3978f2493f5b32e66612a582e4a8d0d7ca28a
7
+ data.tar.gz: 064f5aa59af25e184bdc18f9d740def82616e100143ccebb3c4c374c81dc39f99a6465afe74188907bef70534826703ef0472b29907ed118c0078e69440e6e1e
data/README.md CHANGED
@@ -114,16 +114,11 @@ the step definitions.
114
114
  Marks scenario as pending
115
115
 
116
116
 
117
- * **Then debugger**
118
-
119
- See "Then console"
120
-
121
-
122
117
  * **Then console**
123
118
 
124
- Pauses test execution and opens an IRB shell. Does not halt the application-
119
+ Pauses test execution and opens an IRB shell with current context. Does not halt the application-
125
120
  under-test. (Replaces the "Then debugger" step that has never been adequate
126
- for its job.)
121
+ for its job)
127
122
 
128
123
 
129
124
  * **AfterStep @slow**
@@ -5,20 +5,41 @@ Then /^it should work$/ do
5
5
  pending
6
6
  end.overridable
7
7
 
8
- # See "Then console"
8
+ # nodoc
9
9
  Then 'debugger' do
10
10
  warn $/, '[DEPRECATED] Prefer using "Then console"'
11
11
  step 'console'
12
12
  end.overridable
13
13
 
14
- # Pauses test execution and opens an IRB shell. Does not halt the application-
14
+ # Pauses test execution and opens an IRB shell with current context. Does not halt the application-
15
15
  # under-test. (Replaces the "Then debugger" step that has never been adequate
16
- # for its job.)
16
+ # for its job)
17
17
  Then 'console' do
18
18
  require 'irb'
19
19
  ARGV.clear # IRB takes ARGV as its own arguments
20
20
 
21
- IRB.start
21
+ # We adapted the steps of IRB.run
22
+ # https://github.com/ruby/ruby/blob/c08f7b80889b531865e74bc5f573df8fa27f2088/lib/irb.rb#L418
23
+ # with injected workspace. See https://github.com/makandra/spreewald/issues/77 for reasons.
24
+
25
+ IRB.setup(nil)
26
+
27
+ workspace = IRB::WorkSpace.new(binding)
28
+ irb = IRB::Irb.new(workspace)
29
+
30
+ IRB.conf[:MAIN_CONTEXT] = irb.context
31
+
32
+ trap("SIGINT") do
33
+ irb.signal_handle
34
+ end
35
+
36
+ begin
37
+ catch(:IRB_EXIT) do
38
+ irb.eval_input
39
+ end
40
+ ensure
41
+ IRB.irb_at_exit
42
+ end
22
43
  end.overridable
23
44
 
24
45
  # Waits 2 seconds after each step
@@ -13,6 +13,7 @@ module ToleranceForSeleniumSyncIssues
13
13
  Selenium::WebDriver::Error::NoAlertPresentError
14
14
  Selenium::WebDriver::Error::JavascriptError
15
15
  Selenium::WebDriver::Error::UnknownError
16
+ Selenium::WebDriver::Error::NoSuchAlertError
16
17
  ]
17
18
 
18
19
  class CapybaraWrapper
@@ -1,3 +1,3 @@
1
1
  module Spreewald
2
- VERSION = '1.10.4'
2
+ VERSION = '1.11.0'
3
3
  end
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ../..
3
3
  specs:
4
- spreewald (1.10.1)
4
+ spreewald (1.11.0)
5
5
  cucumber
6
6
  cucumber_priority
7
7
 
@@ -93,4 +93,4 @@ DEPENDENCIES
93
93
  sqlite3
94
94
 
95
95
  BUNDLED WITH
96
- 1.16.0
96
+ 1.16.1
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ../../..
3
3
  specs:
4
- spreewald (1.10.1)
4
+ spreewald (1.11.0)
5
5
  cucumber
6
6
  cucumber_priority
7
7
 
@@ -158,4 +158,4 @@ DEPENDENCIES
158
158
  sqlite3
159
159
 
160
160
  BUNDLED WITH
161
- 1.16.0
161
+ 1.16.1
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ../../..
3
3
  specs:
4
- spreewald (1.10.1)
4
+ spreewald (1.11.0)
5
5
  cucumber
6
6
  cucumber_priority
7
7
 
@@ -173,4 +173,4 @@ DEPENDENCIES
173
173
  sqlite3
174
174
 
175
175
  BUNDLED WITH
176
- 1.16.0
176
+ 1.16.1
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.10.4
4
+ version: 1.11.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: 2018-02-09 00:00:00.000000000 Z
11
+ date: 2018-02-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cucumber
@@ -280,7 +280,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
280
280
  version: '0'
281
281
  requirements: []
282
282
  rubyforge_project:
283
- rubygems_version: 2.6.13
283
+ rubygems_version: 2.7.6
284
284
  signing_key:
285
285
  specification_version: 4
286
286
  summary: Collection of useful cucumber steps.