capybara-extensions 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +15 -12
- data/capybara-extensions.gemspec +31 -31
- data/lib/capybara-extensions/version.rb +3 -3
- data/test/finders_test.rb +7 -0
- data/test/string.rb +2 -0
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 41e40664b6e3eb4ca0975ea377d6729fe71df6ab
|
4
|
+
data.tar.gz: cfb94b019851e4f324f8f23495aeca2798a1566b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f65c77e4cf6eefa9164861a4ad93bcffc2987b66da7974d659aa6ee96a86e576672c2070351257d0b74555aa8707ba885a1bac22e39341e8e47ba3d3d1d157b2
|
7
|
+
data.tar.gz: 1c89c5505bdd460b0b6a9b617748a2097598eee8ebe63d0345a6d0271ff26de344711b42016de6884e5d0e3f7ec983237b41f00ca070829c6a6badba502d77e3
|
data/CHANGELOG.md
CHANGED
@@ -1,12 +1,15 @@
|
|
1
|
-
# Changelog
|
2
|
-
|
3
|
-
## 0.4.
|
4
|
-
*
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
*
|
10
|
-
|
11
|
-
|
12
|
-
*
|
1
|
+
# Changelog
|
2
|
+
|
3
|
+
## 0.4.1
|
4
|
+
* Loosens runtime dependency on Capybara version.
|
5
|
+
|
6
|
+
## 0.4.0
|
7
|
+
* Updates the `#first_` method so that when no argument is passed the
|
8
|
+
first occurrence of the element is found.
|
9
|
+
* Updates `README.md` with information about setting up `Capybara'.
|
10
|
+
|
11
|
+
## 0.3.4
|
12
|
+
* Adds `capybara, ~> 2.2.0` as a runtime dependency.
|
13
|
+
* Fixes the calling of `CapybaraExtensions.extension_methods` when defining
|
14
|
+
`Capybara::Session` methods.
|
15
|
+
* Updates the README.
|
data/capybara-extensions.gemspec
CHANGED
@@ -1,31 +1,31 @@
|
|
1
|
-
# coding: utf-8
|
2
|
-
lib = File.expand_path('../lib', __FILE__)
|
3
|
-
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
-
require 'capybara-extensions/version'
|
5
|
-
|
6
|
-
Gem::Specification.new do |spec|
|
7
|
-
spec.name = "capybara-extensions"
|
8
|
-
spec.version = CapybaraExtensions::VERSION
|
9
|
-
spec.authors = ["Michael Dupuis Jr.", 'Dan McClain']
|
10
|
-
spec.email = ["michael.dupuis@dockyard.com", 'rubygems@danmcclain.net']
|
11
|
-
spec.description = %q{Complements Capybara with additional finders and matchers.}
|
12
|
-
spec.summary = %q{Capybara has an intuitive API which mimics the language of an actual user. This library extends Capybara's finders and matchers with additional methods for interacting with tables, lists, and list items, as well as many HTML5 elements.}
|
13
|
-
spec.homepage = "https://github.com/dockyard/capybara-extensions"
|
14
|
-
spec.license = "MIT"
|
15
|
-
|
16
|
-
spec.files = `git ls-files`.split($/)
|
17
|
-
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
18
|
-
spec.require_paths = ["lib"]
|
19
|
-
|
20
|
-
spec.add_development_dependency 'builder'
|
21
|
-
spec.add_development_dependency 'bundler', '~> 1.3'
|
22
|
-
spec.add_development_dependency 'byebug'
|
23
|
-
spec.add_development_dependency 'capybara_minitest_spec'
|
24
|
-
spec.add_development_dependency 'm', '~> 1.3.2'
|
25
|
-
spec.add_development_dependency 'minitest', '< 5.0'
|
26
|
-
spec.add_development_dependency 'minitest-reporters', '~> 0.14.21'
|
27
|
-
spec.add_development_dependency 'rake'
|
28
|
-
spec.add_development_dependency 'yard'
|
29
|
-
|
30
|
-
spec.add_runtime_dependency 'capybara', '~> 2.2
|
31
|
-
end
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'capybara-extensions/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "capybara-extensions"
|
8
|
+
spec.version = CapybaraExtensions::VERSION
|
9
|
+
spec.authors = ["Michael Dupuis Jr.", 'Dan McClain']
|
10
|
+
spec.email = ["michael.dupuis@dockyard.com", 'rubygems@danmcclain.net']
|
11
|
+
spec.description = %q{Complements Capybara with additional finders and matchers.}
|
12
|
+
spec.summary = %q{Capybara has an intuitive API which mimics the language of an actual user. This library extends Capybara's finders and matchers with additional methods for interacting with tables, lists, and list items, as well as many HTML5 elements.}
|
13
|
+
spec.homepage = "https://github.com/dockyard/capybara-extensions"
|
14
|
+
spec.license = "MIT"
|
15
|
+
|
16
|
+
spec.files = `git ls-files`.split($/)
|
17
|
+
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
18
|
+
spec.require_paths = ["lib"]
|
19
|
+
|
20
|
+
spec.add_development_dependency 'builder'
|
21
|
+
spec.add_development_dependency 'bundler', '~> 1.3'
|
22
|
+
spec.add_development_dependency 'byebug'
|
23
|
+
spec.add_development_dependency 'capybara_minitest_spec'
|
24
|
+
spec.add_development_dependency 'm', '~> 1.3.2'
|
25
|
+
spec.add_development_dependency 'minitest', '< 5.0'
|
26
|
+
spec.add_development_dependency 'minitest-reporters', '~> 0.14.21'
|
27
|
+
spec.add_development_dependency 'rake'
|
28
|
+
spec.add_development_dependency 'yard'
|
29
|
+
|
30
|
+
spec.add_runtime_dependency 'capybara', '~> 2.2'
|
31
|
+
end
|
@@ -1,3 +1,3 @@
|
|
1
|
-
module CapybaraExtensions
|
2
|
-
VERSION = "0.4.
|
3
|
-
end
|
1
|
+
module CapybaraExtensions
|
2
|
+
VERSION = "0.4.1"
|
3
|
+
end
|
data/test/finders_test.rb
CHANGED
@@ -413,6 +413,13 @@ describe '.string' do
|
|
413
413
|
string.form(post).text.must_have_content multiple
|
414
414
|
string.find_form(post).text.wont_have_content unique
|
415
415
|
end
|
416
|
+
|
417
|
+
it 'finds the form when passed the string of a label' do
|
418
|
+
string.find_form('Name').text.must_have_content unique
|
419
|
+
string.find_form('Name').text.wont_have_content multiple
|
420
|
+
string.form('Name').text.must_have_content unique
|
421
|
+
string.form('Name').text.wont_have_content multiple
|
422
|
+
end
|
416
423
|
end
|
417
424
|
|
418
425
|
describe '#first_form' do
|
data/test/string.rb
CHANGED
@@ -181,7 +181,9 @@ TestString = <<-STRING
|
|
181
181
|
|
182
182
|
<form class='post' id='post_1'>
|
183
183
|
John Doe
|
184
|
+
<label for='name'>Name</label>
|
184
185
|
<input id='name' value='John Doe'>
|
186
|
+
<label for='email'>Email</label>
|
185
187
|
<input id='email' value='john@example.com'>
|
186
188
|
</form>
|
187
189
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capybara-extensions
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Dupuis Jr.
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2015-07-09 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: builder
|
@@ -143,14 +143,14 @@ dependencies:
|
|
143
143
|
requirements:
|
144
144
|
- - "~>"
|
145
145
|
- !ruby/object:Gem::Version
|
146
|
-
version: 2.2
|
146
|
+
version: '2.2'
|
147
147
|
type: :runtime
|
148
148
|
prerelease: false
|
149
149
|
version_requirements: !ruby/object:Gem::Requirement
|
150
150
|
requirements:
|
151
151
|
- - "~>"
|
152
152
|
- !ruby/object:Gem::Version
|
153
|
-
version: 2.2
|
153
|
+
version: '2.2'
|
154
154
|
description: Complements Capybara with additional finders and matchers.
|
155
155
|
email:
|
156
156
|
- michael.dupuis@dockyard.com
|
@@ -197,7 +197,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
197
197
|
version: '0'
|
198
198
|
requirements: []
|
199
199
|
rubyforge_project:
|
200
|
-
rubygems_version: 2.
|
200
|
+
rubygems_version: 2.4.5
|
201
201
|
signing_key:
|
202
202
|
specification_version: 4
|
203
203
|
summary: Capybara has an intuitive API which mimics the language of an actual user.
|