spreewald 1.7.0 → 1.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/spreewald_support/mail_finder.rb +2 -2
- data/lib/spreewald_support/version.rb +1 -1
- data/tests/rails-2.3/config/cucumber.yml +2 -0
- data/tests/rails-2.3/config/database.yml +3 -0
- data/tests/rails-2.3/features/support/paths.rb +16 -0
- data/tests/rails-2.3/features/support/selectors.rb +43 -0
- data/tests/rails-3.2/capybara-1/config/cucumber.yml +2 -0
- data/tests/rails-3.2/capybara-1/config/database.yml +3 -0
- data/tests/rails-3.2/capybara-1/features/support/paths.rb +16 -0
- data/tests/rails-3.2/capybara-1/features/support/selectors.rb +43 -0
- data/tests/rails-3.2/capybara-2/Rakefile +18 -0
- metadata +3 -29
- data/tests/rails-2.3/app +0 -1
- data/tests/rails-2.3/config/cucumber.yml +0 -1
- data/tests/rails-2.3/config/database.yml +0 -1
- data/tests/rails-2.3/db +0 -1
- data/tests/rails-2.3/features/shared +0 -1
- data/tests/rails-2.3/features/support/paths.rb +0 -1
- data/tests/rails-2.3/features/support/selectors.rb +0 -1
- data/tests/rails-2.3/public +0 -1
- data/tests/rails-3.2/capybara-1/app +0 -1
- data/tests/rails-3.2/capybara-1/config/cucumber.yml +0 -1
- data/tests/rails-3.2/capybara-1/config/database.yml +0 -1
- data/tests/rails-3.2/capybara-1/db +0 -1
- data/tests/rails-3.2/capybara-1/features/shared +0 -1
- data/tests/rails-3.2/capybara-1/features/support/paths.rb +0 -1
- data/tests/rails-3.2/capybara-1/features/support/selectors.rb +0 -1
- data/tests/rails-3.2/capybara-1/public +0 -1
- data/tests/rails-3.2/capybara-2/Rakefile +0 -1
- data/tests/rails-3.2/capybara-2/app +0 -1
- data/tests/rails-3.2/capybara-2/config +0 -1
- data/tests/rails-3.2/capybara-2/db +0 -1
- data/tests/rails-3.2/capybara-2/features +0 -1
- data/tests/rails-3.2/capybara-2/public +0 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5829528c539947d2de1df68cf298d06a4ad3b1d3
|
4
|
+
data.tar.gz: 3c062ff4459d16b080787f180f0deb2a46398313
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ed8c364b05f61d8802388f0a1ddedf6c1fbd0195ee4374a8dda6c8214054b8b0aaa0a310ddee97a7b8b9b9d2e069a08fe5d5652600b1d17a06702481bf7c8116
|
7
|
+
data.tar.gz: 355b316c2f8b3ab8a7ea4765691d7c332bbd58bdf7306f2dcd8a1ce0931972854b832b516af7a19b9796426c23a709e1d41481c8313adba17c72854d91d28c19
|
@@ -10,8 +10,8 @@ class MailFinder
|
|
10
10
|
ActionMailer::Base.deliveries.detect do |mail|
|
11
11
|
mail_body = email_text_body(mail)
|
12
12
|
[ conditions[:to].nil? || mail.to.include?(resolve_email conditions[:to]),
|
13
|
-
conditions[:cc].nil? || mail.cc.
|
14
|
-
conditions[:bcc].nil? || mail.bcc.
|
13
|
+
conditions[:cc].nil? || mail.cc && mail.cc.include?(resolve_email conditions[:cc]),
|
14
|
+
conditions[:bcc].nil? || mail.bcc && mail.bcc.include?(resolve_email conditions[:bcc]),
|
15
15
|
conditions[:from].nil? || mail.from.include?(resolve_email conditions[:from]),
|
16
16
|
conditions[:reply_to].nil? || mail.reply_to.include?(resolve_email conditions[:reply_to]),
|
17
17
|
conditions[:subject].nil? || mail.subject.include?(conditions[:subject]),
|
@@ -0,0 +1,16 @@
|
|
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)
|
@@ -0,0 +1,43 @@
|
|
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)
|
@@ -0,0 +1,16 @@
|
|
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)
|
@@ -0,0 +1,43 @@
|
|
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)
|
@@ -0,0 +1,18 @@
|
|
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
|
+
|
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.
|
4
|
+
version: 1.7.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: 2016-12-
|
11
|
+
date: 2016-12-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: cucumber
|
@@ -167,7 +167,6 @@ 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
|
171
170
|
- tests/rails-2.3/config/boot.rb
|
172
171
|
- tests/rails-2.3/config/cucumber.yml
|
173
172
|
- tests/rails-2.3/config/database.yml
|
@@ -181,12 +180,9 @@ files:
|
|
181
180
|
- tests/rails-2.3/config/initializers/session_store.rb
|
182
181
|
- tests/rails-2.3/config/preinitializer.rb
|
183
182
|
- tests/rails-2.3/config/routes.rb
|
184
|
-
- tests/rails-2.3/db
|
185
|
-
- tests/rails-2.3/features/shared
|
186
183
|
- tests/rails-2.3/features/support/env.rb
|
187
184
|
- tests/rails-2.3/features/support/paths.rb
|
188
185
|
- tests/rails-2.3/features/support/selectors.rb
|
189
|
-
- tests/rails-2.3/public
|
190
186
|
- tests/rails-2.3/scripts/generate
|
191
187
|
- tests/rails-3.2/.DS_Store
|
192
188
|
- tests/rails-3.2/capybara-1/.firefox-version
|
@@ -194,7 +190,6 @@ files:
|
|
194
190
|
- tests/rails-3.2/capybara-1/Gemfile
|
195
191
|
- tests/rails-3.2/capybara-1/Gemfile.lock
|
196
192
|
- tests/rails-3.2/capybara-1/Rakefile
|
197
|
-
- tests/rails-3.2/capybara-1/app
|
198
193
|
- tests/rails-3.2/capybara-1/config/application.rb
|
199
194
|
- tests/rails-3.2/capybara-1/config/boot.rb
|
200
195
|
- tests/rails-3.2/capybara-1/config/cucumber.yml
|
@@ -206,23 +201,15 @@ files:
|
|
206
201
|
- tests/rails-3.2/capybara-1/config/initializers/secret_token.rb
|
207
202
|
- tests/rails-3.2/capybara-1/config/initializers/session_store.rb
|
208
203
|
- 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
|
211
204
|
- tests/rails-3.2/capybara-1/features/support/env.rb
|
212
205
|
- tests/rails-3.2/capybara-1/features/support/paths.rb
|
213
206
|
- tests/rails-3.2/capybara-1/features/support/selectors.rb
|
214
|
-
- tests/rails-3.2/capybara-1/public
|
215
207
|
- tests/rails-3.2/capybara-2/.firefox-version
|
216
208
|
- tests/rails-3.2/capybara-2/.ruby-version
|
217
209
|
- tests/rails-3.2/capybara-2/Gemfile
|
218
210
|
- tests/rails-3.2/capybara-2/Gemfile.lock
|
219
211
|
- tests/rails-3.2/capybara-2/Rakefile
|
220
|
-
- tests/rails-3.2/capybara-2/app
|
221
|
-
- tests/rails-3.2/capybara-2/config
|
222
212
|
- 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
|
226
213
|
- tests/rails-3.2/capybara-2/script/cucumber
|
227
214
|
- tests/rails-3.2/capybara-2/script/rails
|
228
215
|
- tests/shared/app/controllers/application_controller.rb
|
@@ -279,7 +266,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
279
266
|
version: '0'
|
280
267
|
requirements: []
|
281
268
|
rubyforge_project:
|
282
|
-
rubygems_version: 2.
|
269
|
+
rubygems_version: 2.4.8
|
283
270
|
signing_key:
|
284
271
|
specification_version: 4
|
285
272
|
summary: Collection of useful cucumber steps.
|
@@ -289,7 +276,6 @@ test_files:
|
|
289
276
|
- tests/rails-2.3/Gemfile
|
290
277
|
- tests/rails-2.3/Gemfile.lock
|
291
278
|
- tests/rails-2.3/Rakefile
|
292
|
-
- tests/rails-2.3/app
|
293
279
|
- tests/rails-2.3/config/boot.rb
|
294
280
|
- tests/rails-2.3/config/cucumber.yml
|
295
281
|
- tests/rails-2.3/config/database.yml
|
@@ -303,12 +289,9 @@ test_files:
|
|
303
289
|
- tests/rails-2.3/config/initializers/session_store.rb
|
304
290
|
- tests/rails-2.3/config/preinitializer.rb
|
305
291
|
- tests/rails-2.3/config/routes.rb
|
306
|
-
- tests/rails-2.3/db
|
307
|
-
- tests/rails-2.3/features/shared
|
308
292
|
- tests/rails-2.3/features/support/env.rb
|
309
293
|
- tests/rails-2.3/features/support/paths.rb
|
310
294
|
- tests/rails-2.3/features/support/selectors.rb
|
311
|
-
- tests/rails-2.3/public
|
312
295
|
- tests/rails-2.3/scripts/generate
|
313
296
|
- tests/rails-3.2/.DS_Store
|
314
297
|
- tests/rails-3.2/capybara-1/.firefox-version
|
@@ -316,7 +299,6 @@ test_files:
|
|
316
299
|
- tests/rails-3.2/capybara-1/Gemfile
|
317
300
|
- tests/rails-3.2/capybara-1/Gemfile.lock
|
318
301
|
- tests/rails-3.2/capybara-1/Rakefile
|
319
|
-
- tests/rails-3.2/capybara-1/app
|
320
302
|
- tests/rails-3.2/capybara-1/config/application.rb
|
321
303
|
- tests/rails-3.2/capybara-1/config/boot.rb
|
322
304
|
- tests/rails-3.2/capybara-1/config/cucumber.yml
|
@@ -328,23 +310,15 @@ test_files:
|
|
328
310
|
- tests/rails-3.2/capybara-1/config/initializers/secret_token.rb
|
329
311
|
- tests/rails-3.2/capybara-1/config/initializers/session_store.rb
|
330
312
|
- 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
|
333
313
|
- tests/rails-3.2/capybara-1/features/support/env.rb
|
334
314
|
- tests/rails-3.2/capybara-1/features/support/paths.rb
|
335
315
|
- tests/rails-3.2/capybara-1/features/support/selectors.rb
|
336
|
-
- tests/rails-3.2/capybara-1/public
|
337
316
|
- tests/rails-3.2/capybara-2/.firefox-version
|
338
317
|
- tests/rails-3.2/capybara-2/.ruby-version
|
339
318
|
- tests/rails-3.2/capybara-2/Gemfile
|
340
319
|
- tests/rails-3.2/capybara-2/Gemfile.lock
|
341
320
|
- tests/rails-3.2/capybara-2/Rakefile
|
342
|
-
- tests/rails-3.2/capybara-2/app
|
343
|
-
- tests/rails-3.2/capybara-2/config
|
344
321
|
- 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
|
348
322
|
- tests/rails-3.2/capybara-2/script/cucumber
|
349
323
|
- tests/rails-3.2/capybara-2/script/rails
|
350
324
|
- tests/shared/app/controllers/application_controller.rb
|
data/tests/rails-2.3/app
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
../shared/app
|
@@ -1 +0,0 @@
|
|
1
|
-
../../shared/config/cucumber.yml
|
@@ -1 +0,0 @@
|
|
1
|
-
../../shared/config/database.yml
|
data/tests/rails-2.3/db
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
../shared/db
|
@@ -1 +0,0 @@
|
|
1
|
-
../../shared/features/shared
|
@@ -1 +0,0 @@
|
|
1
|
-
../../../shared/features/support/paths.rb
|
@@ -1 +0,0 @@
|
|
1
|
-
../../../shared/features/support/selectors.rb
|
data/tests/rails-2.3/public
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
../shared/public/
|
@@ -1 +0,0 @@
|
|
1
|
-
../../shared/app
|
@@ -1 +0,0 @@
|
|
1
|
-
../../../shared/config/cucumber.yml
|
@@ -1 +0,0 @@
|
|
1
|
-
../../../shared/config/database.yml
|
@@ -1 +0,0 @@
|
|
1
|
-
../../shared/db
|
@@ -1 +0,0 @@
|
|
1
|
-
../../../shared/features/shared
|
@@ -1 +0,0 @@
|
|
1
|
-
../../../../shared/features/support/paths.rb
|
@@ -1 +0,0 @@
|
|
1
|
-
../../../../shared/features/support/selectors.rb
|
@@ -1 +0,0 @@
|
|
1
|
-
../../shared/public/
|
@@ -1 +0,0 @@
|
|
1
|
-
../capybara-1/Rakefile
|
@@ -1 +0,0 @@
|
|
1
|
-
../capybara-1/app
|
@@ -1 +0,0 @@
|
|
1
|
-
../capybara-1/config
|
@@ -1 +0,0 @@
|
|
1
|
-
../capybara-1/db
|
@@ -1 +0,0 @@
|
|
1
|
-
../capybara-1/features
|
@@ -1 +0,0 @@
|
|
1
|
-
../../shared/public/
|