capybara-mechanize 1.6.0 → 1.7.0

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: f93bdb2e738bd9a0f4de392bfcad1c70d9b4d85f
4
- data.tar.gz: 8eba6fb401314f385a27e062fdf556f49457b4f2
3
+ metadata.gz: bbcaf089697d02f46804612f0acefd46a1a65202
4
+ data.tar.gz: c66e9eb863b1aae03917ebd0e3c5b1a291e74899
5
5
  SHA512:
6
- metadata.gz: 528ab3e9caf75bf52dd670a66efdc34fc2df8f080713aa1a098f5f00a22dcd513efa83c255a503666b0f35afba70c71628c9b22a3b40b9fd5646d431f986ec77
7
- data.tar.gz: 244009ceeed4ca0eb465ef20bea575f08b3389cce7f3de154492c192b46851190738336e3ba9c6d1c2afef0d12ade9a38727f2399237bf52158b6b832a739662
6
+ metadata.gz: 24c08aad652998b4e36278aa232c34b6c625cbf2fc2695ef6748f82cd6522a29f610cc76062878a4f21057b46883112cbfd67646cd91c21776de2a397a68e520
7
+ data.tar.gz: ca45b110befa9b67dddcfc309c0d67c006c9f4440c5417ed916d73b6049e1fc0ce611f4a86144b733d912af6e974832ce999a25314578650adc1a6f4e2bfb5e5
@@ -1,6 +1,7 @@
1
1
  class Capybara::Mechanize::Node < Capybara::RackTest::Node
2
2
  def click
3
- if tag_name == 'a'
3
+ if tag_name == 'a' or tag_name == 'label' or
4
+ (tag_name == 'input' and %w(checkbox radio).include?(type))
4
5
  super
5
6
  elsif (tag_name == 'input' and %w(submit image).include?(type)) or
6
7
  ((tag_name == 'button') and type.nil? or type == "submit")
@@ -1,5 +1,5 @@
1
1
  module Capybara
2
2
  module Mechanize
3
- VERSION = '1.6.0'
3
+ VERSION = '1.7.0'
4
4
  end
5
5
  end
@@ -114,7 +114,7 @@ describe Capybara::Mechanize::Driver, 'local' do
114
114
 
115
115
  context "with a default url, no app host" do
116
116
  before do
117
- Capybara.default_host = 'www.local.com'
117
+ Capybara.default_host = 'http://www.local.com'
118
118
  end
119
119
 
120
120
  after do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capybara-mechanize
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.0
4
+ version: 1.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeroen van Dijk
@@ -47,7 +47,7 @@ dependencies:
47
47
  version: 2.4.4
48
48
  - - "<"
49
49
  - !ruby/object:Gem::Version
50
- version: '2.7'
50
+ version: '2.14'
51
51
  type: :runtime
52
52
  prerelease: false
53
53
  version_requirements: !ruby/object:Gem::Requirement
@@ -57,7 +57,7 @@ dependencies:
57
57
  version: 2.4.4
58
58
  - - "<"
59
59
  - !ruby/object:Gem::Version
60
- version: '2.7'
60
+ version: '2.14'
61
61
  description: RackTest driver for Capybara, but with remote request support thanks
62
62
  to mechanize
63
63
  email: jeroen@jeevidee.nl