Sha256: 42bce08befaba84f0f6941d2a774962184649c4af79489ee45c7b0af9ffc7cd2

Contents?: true

Size: 1.08 KB

Versions: 3

Compression:

Stored size: 1.08 KB

Contents

require 'spec_helper'

RSpec.describe HTTParty::Error do
  subject { described_class }

  describe '#ancestors' do
    subject { super().ancestors }
    it { is_expected.to include(StandardError) }
  end

  describe HTTParty::UnsupportedFormat do
    describe '#ancestors' do
      subject { super().ancestors }
      it { is_expected.to include(HTTParty::Error) }
    end
  end

  describe HTTParty::UnsupportedURIScheme do
    describe '#ancestors' do
      subject { super().ancestors }
      it { is_expected.to include(HTTParty::Error) }
    end
  end

  describe HTTParty::ResponseError do
    describe '#ancestors' do
      subject { super().ancestors }
      it { is_expected.to include(HTTParty::Error) }
    end
  end

  describe HTTParty::RedirectionTooDeep do
    describe '#ancestors' do
      subject { super().ancestors }
      it { is_expected.to include(HTTParty::ResponseError) }
    end
  end

  describe HTTParty::DuplicateLocationHeader do
    describe '#ancestors' do
      subject { super().ancestors }
      it { is_expected.to include(HTTParty::ResponseError) }
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
httparty-0.17.0 spec/httparty/exception_spec.rb
httparty-0.16.4 spec/httparty/exception_spec.rb
httparty-0.16.3 spec/httparty/exception_spec.rb