Sha256: fc47233a8f268d73ae11514d2fa52327b4c02444407b5aac1285c8dcb1458e7d
Contents?: true
Size: 377 Bytes
Versions: 5
Compression:
Stored size: 377 Bytes
Contents
require 'spec_helper' describe Gull::HttpError do it 'should instantiate and set original with current exception' do error = StandardError.new 'inner' begin fail error rescue StandardError http_error = Gull::HttpError.new 'test' expect(http_error.original).to eq error expect(http_error.original.message). to eq 'inner' end end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
gull-0.4.0 | spec/error_spec.rb |
gull-0.3.4 | spec/error_spec.rb |
gull-0.3.3 | spec/error_spec.rb |
gull-0.3.2 | spec/error_spec.rb |
gull-0.3.1 | spec/error_spec.rb |