rspec-webservice_matchers 4.4.1 → 4.4.2

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: e1e2e05c085d8524a02bc3fcc71b3d8e4bac91c2
4
- data.tar.gz: c308ef9b3972259ea5415eac5124ba1b9e97cd87
3
+ metadata.gz: fdd366668419982943106174c9013413cae007fa
4
+ data.tar.gz: 4bb2afb6be3c0422a3190cb538bca5779ce8b411
5
5
  SHA512:
6
- metadata.gz: d1e6c2e2403679dabe71c5526e72db9ea5913aa8bed4968c3bd06131ca5967d30ad2e7b51ffbf81e57a96d24aaa7a9f2f4e1dcd65e4fcd6dd4f178df3827c89d
7
- data.tar.gz: b7322fe0be751019da97a8594b14cd7dd62a15543dde4de88f309aba5186de0646579e1e44aee6ce9fc3a9982dd22dd4bfe84c5a60670239547eea2ce24361ed
6
+ metadata.gz: 9f427e384c3daa052bc2e126c1201359168a177b3f9d08b2c8df5ff73631ba239fa15319389c2f4fbfc2afe4f3a714a9e870e0ccc9c5716be8c9285b6c2e5ec7
7
+ data.tar.gz: 662377a89e4f33745552936d2ec19b7a3dbb1ad5868466594018a3fcc3d01751723f6d1ba612d7f3ece046f8d9b7f6f7b77078c60ec0c98812fde981d4813750
@@ -25,12 +25,12 @@ module RSpec
25
25
  # 200. HTTPie and Curl are able to.
26
26
  # See https://github.com/excon/excon/issues/546
27
27
  def fix_for_excon_bug(error_message)
28
- return error_message unless buggy_excon_message?(error_message)
28
+ return error_message unless buggy_message?(error_message)
29
29
  'Unable to verify the certificate because a redirect was detected'
30
30
  end
31
31
 
32
- def buggy_excon_message?(text)
33
- text =~ /Unable to verify certificate, please/
32
+ def buggy_message?(text)
33
+ text =~ /Unable to verify|verify failed/
34
34
  end
35
35
  end
36
36
  end
@@ -67,7 +67,7 @@ module RSpec
67
67
  c.options[:timeout] = TIMEOUT_IN_SECONDS
68
68
  c.options[:open_timeout] = OPEN_TIMEOUT_IN_SECONDS
69
69
  c.use(FaradayMiddleware::FollowRedirects, limit: 4) if follow
70
- c.adapter :excon
70
+ c.adapter :net_http
71
71
  end
72
72
  end
73
73
 
@@ -1,5 +1,5 @@
1
1
  module RSpec
2
2
  module WebserviceMatchers
3
- VERSION = '4.4.1'
3
+ VERSION = '4.4.2'
4
4
  end
5
5
  end
@@ -49,7 +49,8 @@ describe 'be_up' do
49
49
  end
50
50
 
51
51
  it 'is available via a public API' do
52
- expect(RSpec::WebserviceMatchers::Util.up?('http://www.website.com/')).to be true
52
+ status = RSpec::WebserviceMatchers::Util.up?('http://www.website.com/')
53
+ expect(status).to be true
53
54
  end
54
55
 
55
56
  it 'gives relevant error output' do
@@ -61,4 +62,8 @@ describe 'be_up' do
61
62
  it 'succeeds even if the site times out on the first try' do
62
63
  expect('http://www.timeout-once.com').to be_up
63
64
  end
65
+
66
+ it 'works on cars.com' do
67
+ expect('http://cars.com').to be_up
68
+ end
64
69
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rspec-webservice_matchers
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.4.1
4
+ version: 4.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Robb Shecter