spreewald 2.0.0 → 2.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/Gemfile +1 -1
- data/Gemfile.lock +3 -3
- data/Gemfile.ruby218.lock +2 -2
- data/README.md +1 -1
- data/features/binary.feature +2 -2
- data/lib/spreewald/web_steps.rb +8 -2
- data/lib/spreewald_support/version.rb +1 -1
- data/tests/rails-3_capybara-1/Gemfile +2 -1
- data/tests/rails-3_capybara-1/Gemfile.lock +24 -12
- data/tests/rails-3_capybara-1/app +1 -0
- data/tests/rails-3_capybara-1/config/cucumber.yml +1 -0
- data/tests/rails-3_capybara-1/config/database.yml +1 -0
- data/tests/rails-3_capybara-1/db +1 -0
- data/tests/rails-3_capybara-1/features/shared +1 -0
- data/tests/rails-3_capybara-1/features/support/paths.rb +1 -0
- data/tests/rails-3_capybara-1/features/support/selectors.rb +1 -0
- data/tests/rails-3_capybara-1/public +1 -0
- data/tests/rails-3_capybara-2/Gemfile +1 -1
- data/tests/rails-3_capybara-2/Gemfile.lock +18 -12
- data/tests/rails-3_capybara-2/Rakefile +1 -0
- data/tests/rails-3_capybara-2/app +1 -0
- data/tests/rails-3_capybara-2/config +1 -0
- data/tests/rails-3_capybara-2/db +1 -0
- data/tests/rails-3_capybara-2/features +1 -0
- data/tests/rails-3_capybara-2/public +1 -0
- data/tests/rails-4_capybara-3/Gemfile +2 -0
- data/tests/rails-4_capybara-3/Gemfile.lock +12 -0
- data/tests/rails-4_capybara-3/app +1 -0
- data/tests/rails-4_capybara-3/db +1 -0
- data/tests/rails-4_capybara-3/features/development_steps.feature +1 -0
- data/tests/rails-4_capybara-3/features/email_steps.feature +1 -0
- data/tests/rails-4_capybara-3/features/overriding.feature +1 -0
- data/tests/rails-4_capybara-3/features/step_definitions/overriding_steps.rb +1 -0
- data/tests/rails-4_capybara-3/features/step_definitions/test_steps.rb +1 -0
- data/tests/rails-4_capybara-3/features/support/paths.rb +1 -0
- data/tests/rails-4_capybara-3/features/support/selectors.rb +1 -0
- data/tests/rails-4_capybara-3/features/table_steps.feature +1 -0
- data/tests/rails-4_capybara-3/features/web_steps.feature +1 -0
- data/tests/shared/features/shared/step_definitions/test_steps.rb +13 -0
- data/tests/shared/features/shared/web_steps.feature +6 -0
- metadata +24 -2
- data/tests/rails-3_capybara-1/config/cucumber.yml +0 -2
- data/tests/rails-3_capybara-1/config/database.yml +0 -7
- data/tests/rails-3_capybara-1/features/support/paths.rb +0 -16
- data/tests/rails-3_capybara-1/features/support/selectors.rb +0 -52
- data/tests/rails-3_capybara-2/Rakefile +0 -18
- data/tests/rails-4_capybara-3/features/development_steps.feature +0 -8
- data/tests/rails-4_capybara-3/features/email_steps.feature +0 -224
- data/tests/rails-4_capybara-3/features/overriding.feature +0 -5
- data/tests/rails-4_capybara-3/features/step_definitions/overriding_steps.rb +0 -3
- data/tests/rails-4_capybara-3/features/step_definitions/test_steps.rb +0 -43
- data/tests/rails-4_capybara-3/features/support/paths.rb +0 -16
- data/tests/rails-4_capybara-3/features/support/selectors.rb +0 -52
- data/tests/rails-4_capybara-3/features/table_steps.feature +0 -293
- data/tests/rails-4_capybara-3/features/web_steps.feature +0 -214
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b853ba2b4b5532afd740456b84d2e98a7aa46346
|
4
|
+
data.tar.gz: 29260c980d2f036aefa9316632db8d28992a6d3f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1f8a6575b21461d10b423de1a7b79a07b5f20e515c76dead01abbb5a2433dd053ad048bc2ac15444a42a63d1c7e3fa6a1281484ee975f8919e5cda6bb7dcbca8
|
7
|
+
data.tar.gz: 3a068ac6e441278ee69d89018c8a9b321d5bb1a903209c631cd7fb5e551b9e42f31c53c4eb64f7ca9f596837f7eec6b52a8c510862b583d3880b2737da0be2dc
|
data/CHANGELOG.md
CHANGED
@@ -3,6 +3,9 @@ All notable changes to this project will be documented in this file.
|
|
3
3
|
|
4
4
|
This project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
|
5
5
|
|
6
|
+
## 2.1.0
|
7
|
+
'Then show me the page' supports capybara-screenshot. (see [issue #81](https://github.com/makandra/spreewald/issues/81))
|
8
|
+
|
6
9
|
## 2.0.0
|
7
10
|
Mail steps supports both LF and CRLF linebreaks. (see [issue #83](https://github.com/makandra/spreewald/issues/83))
|
8
11
|
### Breaking Changes
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -10,7 +10,7 @@ GEM
|
|
10
10
|
rspec-mocks (~> 3.8.0)
|
11
11
|
rspec-core (3.8.0)
|
12
12
|
rspec-support (~> 3.8.0)
|
13
|
-
rspec-expectations (3.8.
|
13
|
+
rspec-expectations (3.8.3)
|
14
14
|
diff-lcs (>= 1.2.0, < 2.0)
|
15
15
|
rspec-support (~> 3.8.0)
|
16
16
|
rspec-mocks (3.8.0)
|
@@ -24,7 +24,7 @@ PLATFORMS
|
|
24
24
|
DEPENDENCIES
|
25
25
|
gemika
|
26
26
|
rake
|
27
|
-
rspec (>= 2.
|
27
|
+
rspec (>= 2.14.0)
|
28
28
|
|
29
29
|
BUNDLED WITH
|
30
|
-
1.
|
30
|
+
1.17.3
|
data/Gemfile.ruby218.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
GEM
|
2
2
|
remote: https://rubygems.org/
|
3
3
|
specs:
|
4
|
-
aruba (0.14.
|
4
|
+
aruba (0.14.9)
|
5
5
|
childprocess (>= 0.6.3, < 1.1.0)
|
6
6
|
contracts (~> 0.9)
|
7
7
|
cucumber (>= 1.3.19)
|
@@ -36,7 +36,7 @@ GEM
|
|
36
36
|
rspec-mocks (~> 3.8.0)
|
37
37
|
rspec-core (3.8.0)
|
38
38
|
rspec-support (~> 3.8.0)
|
39
|
-
rspec-expectations (3.8.
|
39
|
+
rspec-expectations (3.8.3)
|
40
40
|
diff-lcs (>= 1.2.0, < 2.0)
|
41
41
|
rspec-support (~> 3.8.0)
|
42
42
|
rspec-mocks (3.8.0)
|
data/README.md
CHANGED
@@ -441,7 +441,7 @@ deprecation notice. Decide for yourself whether you want to use them:
|
|
441
441
|
|
442
442
|
* **Then show me the page**
|
443
443
|
|
444
|
-
Open the current Capybara page using the `launchy` gem
|
444
|
+
Open the current Capybara page using the `launchy` or `capybara_screenshot` gem
|
445
445
|
|
446
446
|
|
447
447
|
* **Then I should( not)? see a field "..."**
|
data/features/binary.feature
CHANGED
@@ -240,7 +240,7 @@ Feature: The `spreewald` binary
|
|
240
240
|
|
241
241
|
Scenario: Print version
|
242
242
|
When I run `spreewald --version`
|
243
|
-
Then the output should contain "Spreewald
|
243
|
+
Then the output should contain "Spreewald 2."
|
244
244
|
|
245
245
|
When I run `spreewald -v`
|
246
|
-
Then the output should contain "Spreewald
|
246
|
+
Then the output should contain "Spreewald 2."
|
data/lib/spreewald/web_steps.rb
CHANGED
@@ -314,9 +314,15 @@ Then /^(?:|I )should have the following query string:$/ do |expected_pairs|
|
|
314
314
|
end
|
315
315
|
end.overridable
|
316
316
|
|
317
|
-
# Open the current Capybara page using the `launchy` gem
|
317
|
+
# Open the current Capybara page using the `launchy` or `capybara_screenshot` gem
|
318
318
|
Then /^show me the page$/ do
|
319
|
-
|
319
|
+
if defined? Launchy
|
320
|
+
save_and_open_page
|
321
|
+
elsif defined? Capybara::Screenshot
|
322
|
+
screenshot_and_save_page
|
323
|
+
else
|
324
|
+
raise 'Neither launchy nor capybara_screenshot gem is installed. You have to add at least one of them to your Gemfile to use this step'
|
325
|
+
end
|
320
326
|
end.overridable
|
321
327
|
|
322
328
|
|
@@ -3,6 +3,7 @@ source 'https://rubygems.org'
|
|
3
3
|
gem 'rails', '~>3.2'
|
4
4
|
gem "sqlite3", :platform=>:ruby
|
5
5
|
gem 'database_cleaner'
|
6
|
+
gem 'launchy'
|
6
7
|
gem 'capybara', "~>1" # for ruby 1.8.7 compatibility
|
7
8
|
gem 'cucumber-rails'
|
8
9
|
gem 'cucumber', '1.3.8'
|
@@ -14,5 +15,5 @@ gem 'haml-rails'
|
|
14
15
|
gem 'gemika'
|
15
16
|
|
16
17
|
gem 'spreewald', :path => '../..'
|
17
|
-
|
18
|
+
gem 'pry'
|
18
19
|
|
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: ../..
|
3
3
|
specs:
|
4
|
-
spreewald (2.
|
4
|
+
spreewald (2.1.0)
|
5
5
|
cucumber
|
6
6
|
cucumber_priority (>= 0.3.0)
|
7
7
|
rspec
|
@@ -36,6 +36,8 @@ GEM
|
|
36
36
|
activesupport (3.2.13)
|
37
37
|
i18n (= 0.6.1)
|
38
38
|
multi_json (~> 1.0)
|
39
|
+
addressable (2.6.0)
|
40
|
+
public_suffix (>= 2.0.2, < 4.0)
|
39
41
|
arel (3.0.2)
|
40
42
|
builder (3.0.4)
|
41
43
|
capybara (1.1.4)
|
@@ -47,6 +49,7 @@ GEM
|
|
47
49
|
xpath (~> 0.1.4)
|
48
50
|
childprocess (0.3.9)
|
49
51
|
ffi (~> 1.0, >= 1.0.11)
|
52
|
+
coderay (1.1.2)
|
50
53
|
cucumber (1.3.8)
|
51
54
|
builder (>= 2.1.2)
|
52
55
|
diff-lcs (>= 1.1.3)
|
@@ -78,14 +81,21 @@ GEM
|
|
78
81
|
i18n (0.6.1)
|
79
82
|
journey (1.0.4)
|
80
83
|
json (1.8.0)
|
84
|
+
launchy (2.4.3)
|
85
|
+
addressable (~> 2.3)
|
81
86
|
mail (2.5.4)
|
82
87
|
mime-types (~> 1.16)
|
83
88
|
treetop (~> 1.4.8)
|
89
|
+
method_source (0.9.2)
|
84
90
|
mime-types (1.23)
|
85
91
|
multi_json (1.12.1)
|
86
92
|
multi_test (0.1.2)
|
87
93
|
nokogiri (1.5.9)
|
88
94
|
polyglot (0.3.3)
|
95
|
+
pry (0.12.2)
|
96
|
+
coderay (~> 1.1.0)
|
97
|
+
method_source (~> 0.9.0)
|
98
|
+
public_suffix (3.0.3)
|
89
99
|
rack (1.4.5)
|
90
100
|
rack-cache (1.2)
|
91
101
|
rack (>= 0.4)
|
@@ -111,21 +121,21 @@ GEM
|
|
111
121
|
rake (10.0.4)
|
112
122
|
rdoc (3.12.2)
|
113
123
|
json (~> 1.4)
|
114
|
-
rspec (2.
|
115
|
-
rspec-core (~> 2.
|
116
|
-
rspec-expectations (~> 2.
|
117
|
-
rspec-mocks (~> 2.
|
118
|
-
rspec-core (2.
|
119
|
-
rspec-expectations (2.
|
124
|
+
rspec (2.14.1)
|
125
|
+
rspec-core (~> 2.14.0)
|
126
|
+
rspec-expectations (~> 2.14.0)
|
127
|
+
rspec-mocks (~> 2.14.0)
|
128
|
+
rspec-core (2.14.8)
|
129
|
+
rspec-expectations (2.14.5)
|
120
130
|
diff-lcs (>= 1.1.3, < 2.0)
|
121
|
-
rspec-mocks (2.
|
122
|
-
rspec-rails (2.
|
131
|
+
rspec-mocks (2.14.6)
|
132
|
+
rspec-rails (2.14.0)
|
123
133
|
actionpack (>= 3.0)
|
124
134
|
activesupport (>= 3.0)
|
125
135
|
railties (>= 3.0)
|
126
|
-
rspec-core (~> 2.
|
127
|
-
rspec-expectations (~> 2.
|
128
|
-
rspec-mocks (~> 2.
|
136
|
+
rspec-core (~> 2.14.0)
|
137
|
+
rspec-expectations (~> 2.14.0)
|
138
|
+
rspec-mocks (~> 2.14.0)
|
129
139
|
rubyzip (0.9.9)
|
130
140
|
selenium-webdriver (2.34.0)
|
131
141
|
childprocess (>= 0.2.5)
|
@@ -158,6 +168,8 @@ DEPENDENCIES
|
|
158
168
|
database_cleaner
|
159
169
|
gemika
|
160
170
|
haml-rails
|
171
|
+
launchy
|
172
|
+
pry
|
161
173
|
rails (~> 3.2)
|
162
174
|
rspec-rails
|
163
175
|
selenium-webdriver
|
@@ -0,0 +1 @@
|
|
1
|
+
tests/rails-3_capybara-1/../shared/app
|
@@ -0,0 +1 @@
|
|
1
|
+
tests/rails-3_capybara-1/config/../../shared/config/cucumber.yml
|
@@ -0,0 +1 @@
|
|
1
|
+
tests/rails-3_capybara-1/config/../../shared/config/database.yml
|
@@ -0,0 +1 @@
|
|
1
|
+
tests/rails-3_capybara-1/../shared/db
|
@@ -0,0 +1 @@
|
|
1
|
+
tests/rails-3_capybara-1/features/../../shared/features/shared
|
@@ -0,0 +1 @@
|
|
1
|
+
tests/rails-3_capybara-1/features/support/../../../shared/features/support/paths.rb
|
@@ -0,0 +1 @@
|
|
1
|
+
tests/rails-3_capybara-1/features/support/../../../shared/features/support/selectors.rb
|
@@ -0,0 +1 @@
|
|
1
|
+
tests/rails-3_capybara-1/../shared/public
|
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: ../..
|
3
3
|
specs:
|
4
|
-
spreewald (2.
|
4
|
+
spreewald (2.1.0)
|
5
5
|
cucumber
|
6
6
|
cucumber_priority (>= 0.3.0)
|
7
7
|
rspec
|
@@ -47,6 +47,7 @@ GEM
|
|
47
47
|
xpath (~> 2.0)
|
48
48
|
childprocess (0.3.9)
|
49
49
|
ffi (~> 1.0, >= 1.0.11)
|
50
|
+
coderay (1.1.2)
|
50
51
|
columnize (0.3.6)
|
51
52
|
cucumber (1.3.8)
|
52
53
|
builder (>= 2.1.2)
|
@@ -86,6 +87,7 @@ GEM
|
|
86
87
|
mail (2.5.4)
|
87
88
|
mime-types (~> 1.16)
|
88
89
|
treetop (~> 1.4.8)
|
90
|
+
method_source (0.9.2)
|
89
91
|
mime-types (1.25.1)
|
90
92
|
mini_portile (0.5.2)
|
91
93
|
multi_json (1.12.1)
|
@@ -93,6 +95,9 @@ GEM
|
|
93
95
|
nokogiri (1.6.1)
|
94
96
|
mini_portile (~> 0.5.0)
|
95
97
|
polyglot (0.3.3)
|
98
|
+
pry (0.12.2)
|
99
|
+
coderay (~> 1.1.0)
|
100
|
+
method_source (~> 0.9.0)
|
96
101
|
rack (1.4.5)
|
97
102
|
rack-cache (1.2)
|
98
103
|
rack (>= 0.4)
|
@@ -119,21 +124,21 @@ GEM
|
|
119
124
|
rbx-require-relative (0.0.9)
|
120
125
|
rdoc (3.12.2)
|
121
126
|
json (~> 1.4)
|
122
|
-
rspec (2.
|
123
|
-
rspec-core (~> 2.
|
124
|
-
rspec-expectations (~> 2.
|
125
|
-
rspec-mocks (~> 2.
|
126
|
-
rspec-core (2.
|
127
|
-
rspec-expectations (2.
|
127
|
+
rspec (2.14.1)
|
128
|
+
rspec-core (~> 2.14.0)
|
129
|
+
rspec-expectations (~> 2.14.0)
|
130
|
+
rspec-mocks (~> 2.14.0)
|
131
|
+
rspec-core (2.14.8)
|
132
|
+
rspec-expectations (2.14.5)
|
128
133
|
diff-lcs (>= 1.1.3, < 2.0)
|
129
|
-
rspec-mocks (2.
|
130
|
-
rspec-rails (2.
|
134
|
+
rspec-mocks (2.14.6)
|
135
|
+
rspec-rails (2.14.0)
|
131
136
|
actionpack (>= 3.0)
|
132
137
|
activesupport (>= 3.0)
|
133
138
|
railties (>= 3.0)
|
134
|
-
rspec-core (~> 2.
|
135
|
-
rspec-expectations (~> 2.
|
136
|
-
rspec-mocks (~> 2.
|
139
|
+
rspec-core (~> 2.14.0)
|
140
|
+
rspec-expectations (~> 2.14.0)
|
141
|
+
rspec-mocks (~> 2.14.0)
|
137
142
|
ruby-debug (0.10.4)
|
138
143
|
columnize (>= 0.1)
|
139
144
|
ruby-debug-base (~> 0.10.4.0)
|
@@ -172,6 +177,7 @@ DEPENDENCIES
|
|
172
177
|
gemika
|
173
178
|
haml-rails
|
174
179
|
launchy
|
180
|
+
pry
|
175
181
|
rails (~> 3.2)
|
176
182
|
rspec-rails
|
177
183
|
ruby-debug
|
@@ -0,0 +1 @@
|
|
1
|
+
tests/rails-3_capybara-2/../rails-3_capybara-1/Rakefile
|
@@ -0,0 +1 @@
|
|
1
|
+
tests/rails-3_capybara-2/../rails-3_capybara-1/app
|
@@ -0,0 +1 @@
|
|
1
|
+
tests/rails-3_capybara-2/../rails-3_capybara-1/config
|
@@ -0,0 +1 @@
|
|
1
|
+
tests/rails-3_capybara-2/../rails-3_capybara-1/db
|
@@ -0,0 +1 @@
|
|
1
|
+
tests/rails-3_capybara-2/../rails-3_capybara-1/features/
|
@@ -0,0 +1 @@
|
|
1
|
+
tests/rails-3_capybara-2/../rails-3_capybara-1/public
|
@@ -9,11 +9,13 @@ gem 'gemika'
|
|
9
9
|
|
10
10
|
group :development, :test do
|
11
11
|
gem 'byebug'
|
12
|
+
gem 'pry'
|
12
13
|
end
|
13
14
|
|
14
15
|
group :test do
|
15
16
|
gem 'database_cleaner'
|
16
17
|
gem 'capybara', "~>3" # todo
|
18
|
+
gem 'capybara-screenshot'
|
17
19
|
gem 'cucumber-rails', require: false
|
18
20
|
gem 'cucumber'
|
19
21
|
gem 'selenium-webdriver'
|
@@ -57,8 +57,12 @@ GEM
|
|
57
57
|
rack-test (>= 0.6.3)
|
58
58
|
regexp_parser (~> 1.2)
|
59
59
|
xpath (~> 3.2)
|
60
|
+
capybara-screenshot (1.0.22)
|
61
|
+
capybara (>= 1.0, < 4)
|
62
|
+
launchy
|
60
63
|
childprocess (0.9.0)
|
61
64
|
ffi (~> 1.0, >= 1.0.11)
|
65
|
+
coderay (1.1.2)
|
62
66
|
concurrent-ruby (1.1.4)
|
63
67
|
crass (1.0.4)
|
64
68
|
cucumber (3.1.2)
|
@@ -109,11 +113,14 @@ GEM
|
|
109
113
|
ruby_parser (~> 3.5)
|
110
114
|
i18n (0.9.5)
|
111
115
|
concurrent-ruby (~> 1.0)
|
116
|
+
launchy (2.4.3)
|
117
|
+
addressable (~> 2.3)
|
112
118
|
loofah (2.2.3)
|
113
119
|
crass (~> 1.0.2)
|
114
120
|
nokogiri (>= 1.5.9)
|
115
121
|
mail (2.7.1)
|
116
122
|
mini_mime (>= 0.1.1)
|
123
|
+
method_source (0.9.2)
|
117
124
|
mime-types (3.2.2)
|
118
125
|
mime-types-data (~> 3.2015)
|
119
126
|
mime-types-data (3.2018.0812)
|
@@ -124,6 +131,9 @@ GEM
|
|
124
131
|
multi_test (0.1.2)
|
125
132
|
nokogiri (1.10.1)
|
126
133
|
mini_portile2 (~> 2.4.0)
|
134
|
+
pry (0.12.2)
|
135
|
+
coderay (~> 1.1.0)
|
136
|
+
method_source (~> 0.9.0)
|
127
137
|
public_suffix (3.0.3)
|
128
138
|
rack (1.6.11)
|
129
139
|
rack-test (0.6.3)
|
@@ -205,11 +215,13 @@ PLATFORMS
|
|
205
215
|
DEPENDENCIES
|
206
216
|
byebug
|
207
217
|
capybara (~> 3)
|
218
|
+
capybara-screenshot
|
208
219
|
cucumber
|
209
220
|
cucumber-rails
|
210
221
|
database_cleaner
|
211
222
|
gemika
|
212
223
|
haml-rails
|
224
|
+
pry
|
213
225
|
rails (< 5)
|
214
226
|
rspec-rails
|
215
227
|
selenium-webdriver
|
@@ -0,0 +1 @@
|
|
1
|
+
tests/rails-4_capybara-3/../shared/app/
|
@@ -0,0 +1 @@
|
|
1
|
+
tests/rails-4_capybara-3/../shared/db/
|
@@ -0,0 +1 @@
|
|
1
|
+
tests/rails-4_capybara-3/features/../../shared/features/shared/development_steps.feature
|
@@ -0,0 +1 @@
|
|
1
|
+
tests/rails-4_capybara-3/features/../../shared/features/shared/email_steps.feature
|
@@ -0,0 +1 @@
|
|
1
|
+
tests/rails-4_capybara-3/features/../../shared/features/shared/overriding.feature
|
@@ -0,0 +1 @@
|
|
1
|
+
tests/rails-4_capybara-3/features/step_definitions/../../../shared/features/shared/step_definitions/
|
@@ -0,0 +1 @@
|
|
1
|
+
tests/rails-4_capybara-3/features/step_definitions/../../../shared/features/shared/step_definitions/
|
@@ -0,0 +1 @@
|
|
1
|
+
tests/rails-4_capybara-3/features/support/../../../shared/features/support/paths.rb
|
@@ -0,0 +1 @@
|
|
1
|
+
tests/rails-4_capybara-3/features/support/../../../shared/features/support/selectors.rb
|