Sha256: fc362568e56cd7056988bbbec150c3f6bb82a7842ef0cb60ac777c46b1fd4cd1

Contents?: true

Size: 500 Bytes

Versions: 11

Compression:

Stored size: 500 Bytes

Contents

require 'spec_helper'

describe Arachni::Error do
    it 'inherits from StandardError' do
        expect(Arachni::Error <= StandardError).to be_truthy

        caught = false
        begin
            fail Arachni::Error
        rescue StandardError => e
            caught = true
        end
        expect(caught).to be_truthy

        caught = false
        begin
            fail Arachni::Error
        rescue
            caught = true
        end
        expect(caught).to be_truthy
    end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
arachni-1.6.1.3 spec/arachni/error_spec.rb
arachni-1.6.1.2 spec/arachni/error_spec.rb
arachni-1.6.1.1 spec/arachni/error_spec.rb
arachni-1.6.1 spec/arachni/error_spec.rb
arachni-1.6.0 spec/arachni/error_spec.rb
arachni-1.5.1 spec/arachni/error_spec.rb
arachni-1.5 spec/arachni/error_spec.rb
arachni-1.4 spec/arachni/error_spec.rb
arachni-1.3.2 spec/arachni/error_spec.rb
arachni-1.3.1 spec/arachni/error_spec.rb
arachni-1.3 spec/arachni/error_spec.rb