capybara-mechanize 1.12.0 → 1.13.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.mdown +8 -2
- data/lib/capybara/mechanize/browser.rb +1 -1
- data/lib/capybara/mechanize/node.rb +1 -0
- data/lib/capybara/mechanize/version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 71e7a9ea538130766c9767154896ed33b16b9fd6c456d83fa518605f1ec503e6
|
4
|
+
data.tar.gz: 8faf6e05b63c36569b60706efe16dde9750315fef161331bf93a230c4b17ea7a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4082669d5c99028a56f1aa814914a2a131c8cdf31283b5c647fd5bf54487aaf4544f2a0574067c2496a7b1f55c64eff12686b496a90b05df0fab76a501f06a1e
|
7
|
+
data.tar.gz: f0e34a78d34a155ef9c5fca66af1162a562445ba90f3a4e26a78d50f48cc2a812ed09627c3be0c1c0c57de04d2b991a6906f8b79a28f95aa06cbc7bf45dd860b
|
data/README.mdown
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
Capybara-mechanize
|
2
2
|
==================
|
3
3
|
|
4
|
-
[![
|
4
|
+
[![.github/workflows/test_and_release.yml](https://github.com/phillbaker/capybara-mechanize/actions/workflows/test_and_release.yml/badge.svg)](https://github.com/phillbaker/capybara-mechanize/actions/workflows/test_and_release.yml)
|
5
5
|
|
6
|
-
This
|
6
|
+
This gem makes it possible to use Capybara for (partially) remote testing. It inherits most functionality from the RackTest driver and only uses [Mechanize](https://github.com/sparklemotion/mechanize) for remote requests.
|
7
7
|
|
8
8
|
It is currently in use to test the integration between a Rails application and Twitter authorization and sharing.
|
9
9
|
|
@@ -15,6 +15,12 @@ Thanks to [Pinkelstar](http://www.pinkelstar.com) for giving me the time and the
|
|
15
15
|
|
16
16
|
gem install capybara-mechanize
|
17
17
|
|
18
|
+
### Compatibility
|
19
|
+
|
20
|
+
For support with:
|
21
|
+
* Capybara 2.x, use versions of this gem less than or equal 1.11.0
|
22
|
+
* Capybara 3.x, use versions of this gem greater than or equal to 1.12.0
|
23
|
+
|
18
24
|
### Usage without Cucumber
|
19
25
|
|
20
26
|
require 'capybara/mechanize'
|
@@ -34,7 +34,7 @@ class Capybara::Mechanize::Browser < Capybara::RackTest::Browser
|
|
34
34
|
end
|
35
35
|
|
36
36
|
def last_request
|
37
|
-
last_request_remote? ? OpenStruct.new(request_method: @last_method, params: @last_params) : super
|
37
|
+
last_request_remote? ? OpenStruct.new(request_method: @last_method, params: @last_params, url: remote_response.current_url) : super
|
38
38
|
end
|
39
39
|
|
40
40
|
# For each of these http methods, we want to intercept the method call.
|
@@ -2,6 +2,7 @@
|
|
2
2
|
|
3
3
|
class Capybara::Mechanize::Node < Capybara::RackTest::Node
|
4
4
|
def click(keys = [], **options)
|
5
|
+
options.delete(:offset)
|
5
6
|
raise ArgumentError, 'The mechanize driver does not support click options' unless keys.empty? && options.empty?
|
6
7
|
|
7
8
|
submits = respond_to?(:submits?) ? submits? :
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capybara-mechanize
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.13.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jeroen van Dijk
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-03-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: capybara
|
@@ -36,14 +36,14 @@ dependencies:
|
|
36
36
|
requirements:
|
37
37
|
- - "~>"
|
38
38
|
- !ruby/object:Gem::Version
|
39
|
-
version: 2.
|
39
|
+
version: 2.8.5
|
40
40
|
type: :runtime
|
41
41
|
prerelease: false
|
42
42
|
version_requirements: !ruby/object:Gem::Requirement
|
43
43
|
requirements:
|
44
44
|
- - "~>"
|
45
45
|
- !ruby/object:Gem::Version
|
46
|
-
version: 2.
|
46
|
+
version: 2.8.5
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: launchy
|
49
49
|
requirement: !ruby/object:Gem::Requirement
|
@@ -143,7 +143,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
143
143
|
- !ruby/object:Gem::Version
|
144
144
|
version: '0'
|
145
145
|
requirements: []
|
146
|
-
rubygems_version: 3.1.
|
146
|
+
rubygems_version: 3.1.4
|
147
147
|
signing_key:
|
148
148
|
specification_version: 4
|
149
149
|
summary: RackTest driver for Capybara with remote request support
|