Sha256: a46c40f11080141f0d16642f63047580822475c4e2713e2dc810b9e0ae87d973

Contents?: true

Size: 1.14 KB

Versions: 12

Compression:

Stored size: 1.14 KB

Contents

require File.expand_path(File.join(File.dirname(__FILE__), '..', '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

12 entries across 12 versions & 1 rubygems

Version Path
httparty-0.16.2 spec/httparty/exception_spec.rb
httparty-0.16.1 spec/httparty/exception_spec.rb
httparty-0.16.0 spec/httparty/exception_spec.rb
httparty-0.15.7 spec/httparty/exception_spec.rb
httparty-0.15.6 spec/httparty/exception_spec.rb
httparty-0.15.5 spec/httparty/exception_spec.rb
httparty-0.15.4 spec/httparty/exception_spec.rb
httparty-0.15.3 spec/httparty/exception_spec.rb
httparty-0.15.2 spec/httparty/exception_spec.rb
httparty-0.15.1 spec/httparty/exception_spec.rb
httparty-0.15.0 spec/httparty/exception_spec.rb
httparty-0.14.0 spec/httparty/exception_spec.rb