capybara_table 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/capybara_table.gemspec +1 -1
- data/lib/capybara_table/rspec.rb +7 -1
- data/lib/capybara_table/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6ce5c8d64685e896c47435625a57d50f58ce1b27
|
4
|
+
data.tar.gz: 2a7b836a1c7518ae06cbff98c243d8746966bf8f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 55a93ceffc540f487962fa96381daced77fa03c42471113f1c2e9043270134c88772cb0feb28fbdf14b4bbb75641f430014ee2442d75ccc0bb91eaf2b4e15cf8
|
7
|
+
data.tar.gz: b412c7eb862d26b5eca760bb1a22c78603b54ed45b207014355e3827389c1dedc81f01568fad3cea80cec0ef1627c02135340f231597a3c136aedfbca1cf8e8b
|
data/capybara_table.gemspec
CHANGED
@@ -24,6 +24,6 @@ Gem::Specification.new do |spec|
|
|
24
24
|
spec.add_development_dependency "rake", "~> 10.0"
|
25
25
|
spec.add_development_dependency "rspec", "~> 3.0"
|
26
26
|
spec.add_dependency "capybara", ">= 2.0"
|
27
|
-
spec.add_dependency "xpath", "
|
27
|
+
spec.add_dependency "xpath", ">= 2.1"
|
28
28
|
spec.add_dependency "terminal-table"
|
29
29
|
end
|
data/lib/capybara_table/rspec.rb
CHANGED
@@ -10,7 +10,13 @@ module CapybaraTable
|
|
10
10
|
|
11
11
|
matcher :have_table_row do |fields_and_options|
|
12
12
|
fields, options = fields_and_options.partition { |k, v| k.is_a?(String) }.map(&:to_h)
|
13
|
-
|
13
|
+
|
14
|
+
klass = begin
|
15
|
+
Capybara::RSpecMatchers::Matchers::HaveSelector
|
16
|
+
rescue NameError
|
17
|
+
Capybara::RSpecMatchers::HaveSelector
|
18
|
+
end
|
19
|
+
selector = klass.new(:table_row, fields, options)
|
14
20
|
|
15
21
|
match do |node|
|
16
22
|
selector.matches?(node)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capybara_table
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jonas Nicklas
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-01-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -70,14 +70,14 @@ dependencies:
|
|
70
70
|
name: xpath
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- - "
|
73
|
+
- - ">="
|
74
74
|
- !ruby/object:Gem::Version
|
75
75
|
version: '2.1'
|
76
76
|
type: :runtime
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
|
-
- - "
|
80
|
+
- - ">="
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '2.1'
|
83
83
|
- !ruby/object:Gem::Dependency
|