test-unit-capybara 1.0.7 → 1.0.8

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c0046374cecdddc82cb15627d3d8a6170423e07a39ecb9b572db2dcd59d6adb7
4
- data.tar.gz: da3c3fe048ef0a1cfe4d677f13aa32a94c5649c5fce71e7079aebee630a0dddb
3
+ metadata.gz: 84fa6f0c84122420c4d287a5d0d6b49488dd95ed35d03010054178f997414d43
4
+ data.tar.gz: 19eed1234386a00dfcaf590badb17ca965fd3c046cb9fe0afdfc41a0f0b01171
5
5
  SHA512:
6
- metadata.gz: 2cc7c36b14188bab0088a011deeb7a1fe63a58ff3d70127b7ce9ca98143a324aa3c981e85f7908c4fb3ec518e1a5976af552e5949ae3b98a6765bc35210d7382
7
- data.tar.gz: 97f11c15cc6e515c9ea011a3bc21b2084f68dbc9aa83be8884e8c9aa21b68aafd16d6e67a752e087e2fe91e6036e75222676392f02635f010024a66515de1347
6
+ metadata.gz: f299c9576b8da573af74522a18c72423c890f3a3f9c6263dd1c0e0e0ce92b51386749ec67cc5d362def6b4b192882e12dd5d5628d02621e1d9c9addc4b537177
7
+ data.tar.gz: 3ed71358a9b066c83186ada4c10beeb2d34869a718bb5465a7d7dfc823351e0fe293459fb662799840b62983c1f0f75e398d3cac0ac73bde90673458c72e3427
data/README.md CHANGED
@@ -63,7 +63,7 @@ class TestMyRackApplication < Test::Unit::TestCase
63
63
  find("ol.navi")
64
64
  # This fails with the following message:
65
65
  #
66
- # <"ol.navi">(:css) expected to find a element in
66
+ # <"ol.navi">(:css) expected to find an element in
67
67
  # <<div class="header">
68
68
  # <p>No navigation.</p>
69
69
  # </div>>
@@ -1,5 +1,23 @@
1
1
  # News
2
2
 
3
+ ## 1.0.8 - 2019-07-11
4
+
5
+ ### Improvements
6
+
7
+ * Added support for Selenium element.
8
+
9
+ * Updated CI configurations.
10
+ [GitHub#14][Patch by neko maho]
11
+
12
+ ### Fixes
13
+
14
+ * Fixed documents.
15
+ [GitHub#12][GitHub#13][Patch by Akira Matsuda]
16
+
17
+ ### Thanks
18
+
19
+ * Akira Matsuda
20
+
3
21
  ## 1.0.7 - 2018-08-27
4
22
 
5
23
  ### Improvements
@@ -65,7 +83,7 @@ A Capybara 2.1.0 support release.
65
83
 
66
84
  A support Capybara 2.0.1 release.
67
85
 
68
- ### Improvments
86
+ ### Improvements
69
87
 
70
88
  * Supported Capybara 2.0.1.
71
89
  It requires Capybara >= 2.0.1 and test-unit >= 2.5.3.
@@ -75,7 +93,7 @@ A support Capybara 2.0.1 release.
75
93
 
76
94
  A Capybara integration improvement release.
77
95
 
78
- ### Improvments
96
+ ### Improvements
79
97
 
80
98
  * Supported Capybara 1.1.2 again.
81
99
 
@@ -83,7 +101,7 @@ A Capybara integration improvement release.
83
101
 
84
102
  A Capybara integration improvement release.
85
103
 
86
- ### Improvments
104
+ ### Improvements
87
105
 
88
106
  * Added {Test::Unit::Capybara::Assertions#assert_all}.
89
107
  * Added {Test::Unit::Capybara::Assertions#assert_not_find}.
@@ -1,6 +1,4 @@
1
- # -*- ruby -*-
2
- #
3
- # Copyright (C) 2011-2013 Kouhei Sutou <kou@clear-code.com>
1
+ # Copyright (C) 2011-2019 Sutou Kouhei <kou@clear-code.com>
4
2
  #
5
3
  # This library is free software; you can redistribute it and/or
6
4
  # modify it under the terms of the GNU Lesser General Public
@@ -393,7 +391,7 @@ EOT
393
391
  element = nil
394
392
  end
395
393
  format = <<-EOT
396
- <?>(?) expected to not find a element but was
394
+ <?>(?) expected to not find an element but was
397
395
  <?> in
398
396
  <?>
399
397
  EOT
@@ -429,7 +427,7 @@ EOT
429
427
  # It should be specified for useful failure message.
430
428
  def flunk_find(base_node, options={})
431
429
  format = <<-EOT
432
- <?>(?) expected to find a element in
430
+ <?>(?) expected to find an element in
433
431
  <?>
434
432
  EOT
435
433
  base_html = AssertionMessage.literal(node_source(base_node))
@@ -488,6 +486,9 @@ EOT
488
486
  node.base.source
489
487
  elsif node.base.respond_to?(:html)
490
488
  node.base.html
489
+ elsif node.base.respond_to?(:driver)
490
+ node.base.driver.evaluate_script("arguments[0].outerHTML",
491
+ node.base)
491
492
  else
492
493
  node.base.native.to_s
493
494
  end
@@ -17,7 +17,7 @@
17
17
  module Test
18
18
  module Unit
19
19
  module Capybara
20
- VERSION = "1.0.7"
20
+ VERSION = "1.0.8"
21
21
  end
22
22
  end
23
23
  end
@@ -167,7 +167,7 @@ HTML
167
167
  visit("/")
168
168
  h1_html = @html.scan(/<h1>.*?<\/h1>/m)[0]
169
169
  message = <<-EOM.strip
170
- <"h1">(:css) expected to not find a element but was
170
+ <"h1">(:css) expected to not find an element but was
171
171
  <#{h1_html}> in
172
172
  <#{@html}>
173
173
  EOM
@@ -182,7 +182,7 @@ EOM
182
182
  section_html = @html.scan(/<div class="section">.*?<\/div>/m)[0]
183
183
  h2_in_section_html = section_html.scan(/<h2>.*?<\/h2>/m)[0]
184
184
  message = <<-EOM.strip
185
- <"h2">(:css) expected to not find a element but was
185
+ <"h2">(:css) expected to not find an element but was
186
186
  <#{h2_in_section_html}> in
187
187
  <#{section_html}>
188
188
  EOM
@@ -220,7 +220,7 @@ EOM
220
220
  section_html = @html.scan(/<div class="section">.*?<\/div>/m)[0]
221
221
  h2_html = section_html.scan(/<h2>.*?<\/h2>/m)[0]
222
222
  message = <<-EOM.strip
223
- <"h2">(:css) expected to not find a element but was
223
+ <"h2">(:css) expected to not find an element but was
224
224
  <#{h2_html}> in
225
225
  <#{section_html}>
226
226
  EOM
@@ -77,7 +77,7 @@ HTML
77
77
  "0 omissions, 0 notifications", result.to_s)
78
78
 
79
79
  message = <<-EOM.chomp
80
- <"h3">(:css) expected to find a element in
80
+ <"h3">(:css) expected to find an element in
81
81
  <<div class="section">
82
82
  <h2>World</h2>
83
83
  </div>>
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: test-unit-capybara
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.7
4
+ version: 1.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kouhei Sutou
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-08-27 00:00:00.000000000 Z
11
+ date: 2019-07-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: test-unit
@@ -174,13 +174,13 @@ required_rubygems_version: !ruby/object:Gem::Requirement
174
174
  version: '0'
175
175
  requirements: []
176
176
  rubyforge_project:
177
- rubygems_version: 3.0.0.beta1
177
+ rubygems_version: 2.7.6.2
178
178
  signing_key:
179
179
  specification_version: 4
180
180
  summary: test-unit-capybara is a Capybara adapter for test-unit 2. You can get [Capybara](https://rubygems.org/gems/capybara)
181
181
  integrated Test::Unit::TestCase. It also provides useful assertions for Capybara.
182
182
  test_files:
183
183
  - test/test-assertions.rb
184
- - test/run-test.rb
185
- - test/test-unit-capybara-test-utils.rb
186
184
  - test/test-wrapper.rb
185
+ - test/test-unit-capybara-test-utils.rb
186
+ - test/run-test.rb