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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3e3b2150c1b62de9f239d8ab643f0695af0b4c04
4
- data.tar.gz: 7db3b4f7ec378c493de31e38ecf4dbe25acdb240
3
+ metadata.gz: 41e40664b6e3eb4ca0975ea377d6729fe71df6ab
4
+ data.tar.gz: cfb94b019851e4f324f8f23495aeca2798a1566b
5
5
  SHA512:
6
- metadata.gz: ffed4e03d7c04954d3a8c4265a232d61016cd7e0e1257c604d6c77a02657766acb5f4ab1e247805ccf7a728cbfd2b27796b360efbb1cacb70b61ad126d4459c0
7
- data.tar.gz: 8c5562ffc7379f3e5db9a27a46ef0b356dd7bd3524508262b50118d0a3249628b73852b3d1460093d0b9b999564dbeab59343dfc227b295d158ddb7dcc72bb9e
6
+ metadata.gz: f65c77e4cf6eefa9164861a4ad93bcffc2987b66da7974d659aa6ee96a86e576672c2070351257d0b74555aa8707ba885a1bac22e39341e8e47ba3d3d1d157b2
7
+ data.tar.gz: 1c89c5505bdd460b0b6a9b617748a2097598eee8ebe63d0345a6d0271ff26de344711b42016de6884e5d0e3f7ec983237b41f00ca070829c6a6badba502d77e3
@@ -1,12 +1,15 @@
1
- # Changelog
2
-
3
- ## 0.4.0
4
- * Updates the `#first_` method so that when no argument is passed the
5
- first occurrence of the element is found.
6
- * Updates `README.md` with information about setting up `Capybara'.
7
-
8
- ## 0.3.4
9
- * Adds `capybara, ~> 2.2.0` as a runtime dependency.
10
- * Fixes the calling of `CapybaraExtensions.extension_methods` when defining
11
- `Capybara::Session` methods.
12
- * Updates the README.
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.
@@ -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.0'
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.0"
3
- end
1
+ module CapybaraExtensions
2
+ VERSION = "0.4.1"
3
+ end
@@ -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
@@ -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.0
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: 2014-02-28 00:00:00.000000000 Z
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.0
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.0
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.2.0
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.