test-unit-capybara 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/doc/text/news.md +6 -0
- data/lib/test/unit/capybara.rb +5 -3
- data/lib/test/unit/capybara/version.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a18d5ed8212ca5ff31ce77c43a2787b9d3bd94d153d87fdfccfb398ff29c07ec
|
4
|
+
data.tar.gz: a0f40dedfab5904694c52d12494a019d1c8c6829e3a4e051107682bd10b49f6e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e3e09b4efbdf3aef89e7b5aeec1528fb0ab572e5c172c05d18b044c5c625e52138414de61459e6099c3a90a940f434c408c481f238119af311ff03fa653d93f9
|
7
|
+
data.tar.gz: 5a6023f0d362820612a7e0ecefe577072b146a0f00e26e8e9dd5e0ccf4a1cedfe813261bd1545552d0955cde6e185a16961b25f01a87b19cfc571ca78d9dbd83
|
data/doc/text/news.md
CHANGED
data/lib/test/unit/capybara.rb
CHANGED
@@ -383,9 +383,11 @@ EOT
|
|
383
383
|
args = normalize_page_finder_arguments(args)
|
384
384
|
begin
|
385
385
|
if node
|
386
|
-
element = node.first(*args[:finder_arguments]
|
386
|
+
element = node.first(*args[:finder_arguments],
|
387
|
+
**args[:finder_options])
|
387
388
|
else
|
388
|
-
element = first(*args[:finder_arguments]
|
389
|
+
element = first(*args[:finder_arguments],
|
390
|
+
**args[:finder_options])
|
389
391
|
end
|
390
392
|
rescue ::Capybara::ExpectationNotMet
|
391
393
|
element = nil
|
@@ -470,13 +472,13 @@ EOT
|
|
470
472
|
else
|
471
473
|
kind, locator, = args
|
472
474
|
end
|
473
|
-
args << options
|
474
475
|
|
475
476
|
{
|
476
477
|
:kind => kind,
|
477
478
|
:locator => locator,
|
478
479
|
:message => options.delete(:message),
|
479
480
|
:finder_arguments => args,
|
481
|
+
:finder_options => options,
|
480
482
|
}
|
481
483
|
end
|
482
484
|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# Copyright (C) 2011-
|
1
|
+
# Copyright (C) 2011-2021 Sutou Kouhei <kou@clear-code.com>
|
2
2
|
#
|
3
3
|
# This library is free software; you can redistribute it and/or
|
4
4
|
# modify it under the terms of the GNU Lesser General Public
|
@@ -17,7 +17,7 @@
|
|
17
17
|
module Test
|
18
18
|
module Unit
|
19
19
|
module Capybara
|
20
|
-
VERSION = "1.1.
|
20
|
+
VERSION = "1.1.1"
|
21
21
|
end
|
22
22
|
end
|
23
23
|
end
|