Sha256: b76f88c0fc00c5ae61d6e4a69a9dbfb0247e1c43de37c1994e293f87b0fd6057
Contents?: true
Size: 471 Bytes
Versions: 4
Compression:
Stored size: 471 Bytes
Contents
require 'helper' describe Wayback::Error do describe "#initialize" do it "wraps another error class" do begin raise Faraday::Error::ClientError.new("Oops") rescue Faraday::Error::ClientError begin raise Wayback::Error rescue Wayback::Error => error expect(error.message).to eq "Oops" expect(error.wrapped_exception.class).to eq Faraday::Error::ClientError end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
wayback-0.3.1 | spec/wayback/error_spec.rb |
wayback-0.2.1 | spec/wayback/error_spec.rb |
wayback-0.2.0 | spec/wayback/error_spec.rb |
wayback-0.1.0 | spec/wayback/error_spec.rb |