Sha256: 2f0519957f7ddd259d040237a61fdfe27b6237a8cc1779782713ebdc21c6edc6

Contents?: true

Size: 496 Bytes

Versions: 1

Compression:

Stored size: 496 Bytes

Contents

require_relative '../spec_helper'

describe Arachni::Error do
    it 'inherits from StandardError' do
        (Arachni::Error <= StandardError).should be_true

        caught = false
        begin
            fail Arachni::Error
        rescue StandardError => e
            caught = true
        end
        caught.should be_true

        caught = false
        begin
            fail Arachni::Error
        rescue
            caught = true
        end
        caught.should be_true
    end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
arachni-0.4.2 spec/arachni/error.rb