capybara-mechanize 0.4.0.rc1 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README.mdown +2 -2
- data/lib/capybara/mechanize/version.rb +1 -1
- data/spec/driver/mechanize_driver_spec.rb +3 -0
- metadata +4 -3
data/README.mdown
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
Capybara-mechanize
|
2
2
|
==================
|
3
3
|
|
4
|
-
This gems makes it possible to use Capybara for (partially) remote testing. It inherits most functionality from the RackTest driver and only uses [Mechanize](
|
4
|
+
This gems 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.
|
5
5
|
|
6
6
|
It is currently in use to test the integration between a Rails application and Twitter authorization and sharing.
|
7
7
|
|
@@ -64,4 +64,4 @@ Note on Patches/Pull Requests
|
|
64
64
|
|
65
65
|
Copyright
|
66
66
|
---------
|
67
|
-
Copyright (c) 2010-
|
67
|
+
Copyright (c) 2010-2013 Jeroen van Dijk. See LICENSE for details.
|
@@ -179,6 +179,9 @@ describe Capybara::Mechanize::Driver, 'local' do
|
|
179
179
|
end
|
180
180
|
|
181
181
|
it "should raise a useful error for sites that return a 404, because it is probably a misconfiguration" do
|
182
|
+
# Note that this test fails when it is run on a system with a crappy
|
183
|
+
# ISP, like Time Warner, that redirects bad DNS calls to their own
|
184
|
+
# search results to make a little more dough.
|
182
185
|
expect {
|
183
186
|
driver.visit("http://iamreallysurethatthisdoesntexist.com/canttouchthis")
|
184
187
|
}.to raise_error(%r{Received the following error for a GET request to http://iamreallysurethatthisdoesntexist.com/canttouchthis:})
|
metadata
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capybara-mechanize
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
5
|
-
prerelease:
|
4
|
+
version: 1.0.0
|
5
|
+
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Jeroen van Dijk
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-02
|
12
|
+
date: 2013-04-02 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: mechanize
|
@@ -98,3 +98,4 @@ signing_key:
|
|
98
98
|
specification_version: 3
|
99
99
|
summary: RackTest driver for Capybara with remote request support
|
100
100
|
test_files: []
|
101
|
+
has_rdoc:
|