Sha256: 550474d52ae6ccc65bde6527da1cdc6684d6a35f63e0d9b7829faf5391efbe7c

Contents?: true

Size: 436 Bytes

Versions: 2

Compression:

Stored size: 436 Bytes

Contents

# frozen_string_literal: true
require 'spec_helper'
require 'web_test/util'

include RSpec::WebserviceMatchers

describe '#up?' do
  it 'follows redirects when necessary' do
    expect(WebTest::Util.up?('perm-redirector.com')).to be_truthy
    expect(WebTest::Util.up?('temp-redirector.org')).to be_truthy
  end

  xit 'retries timeout errors once' do
    expect(WebTest::Util.up?('http://www.timeout-once.com')).to be_truthy
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rspec-webservice_matchers-4.13 spec/rspec/webservice_matchers/public_api_spec.rb
rspec-webservice_matchers-4.12.2 spec/rspec/webservice_matchers/public_api_spec.rb