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 +5 -5
- data/README.md +2 -7
- data/lib/spreewald/development_steps.rb +25 -4
- data/lib/spreewald_support/tolerance_for_selenium_sync_issues.rb +1 -0
- data/lib/spreewald_support/version.rb +1 -1
- data/tests/rails-2.3/Gemfile.lock +2 -2
- data/tests/rails-3.2/capybara-1/Gemfile.lock +2 -2
- data/tests/rails-3.2/capybara-2/Gemfile.lock +2 -2
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: b13fd213c765ec60a934cc3b947f16899c03de1026a4fc01692dc9712d72ac8c
|
4
|
+
data.tar.gz: ea047bcedf22080ec24172e3a5db606fbcb9b8baef2ee913daaa454b1463b541
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
#
|
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.
|
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
|
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.
|
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-
|
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
|
283
|
+
rubygems_version: 2.7.6
|
284
284
|
signing_key:
|
285
285
|
specification_version: 4
|
286
286
|
summary: Collection of useful cucumber steps.
|