Sha256: 49e771a6fe460c00f845195b1534b0e966ae83a013b13d8175b4e5c754181706
Contents?: true
Size: 463 Bytes
Versions: 2
Compression:
Stored size: 463 Bytes
Contents
require 'helper' describe Twitter::Error do describe "#initialize" do it "wraps another error class" do begin raise Faraday::Error::ClientError.new("Oups") rescue Faraday::Error::ClientError begin raise Twitter::Error rescue Twitter::Error => error error.message.should eq "Oups" error.wrapped_exception.class.should eq Faraday::Error::ClientError end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
twitter-4.1.0 | spec/twitter/error_spec.rb |
twitter-4.0.0 | spec/twitter/error_spec.rb |