Sha256: 41b0c6d150d4c115dcdb8de468d096f3a3efa2ed39c8ad1912ccfca966e0afb0
Contents?: true
Size: 404 Bytes
Versions: 18
Compression:
Stored size: 404 Bytes
Contents
require "spec_helper" class MockResponse def code 10000 end def body " error description" end end describe PagSeguro::Errors::UnknownError do it "should be able to raise an unknown error" do lambda { raise PagSeguro::Errors::UnknownError.new(MockResponse.new) }.should raise_error(PagSeguro::Errors::UnknownError, "Unknown response code (10000):\n error description") end end
Version data entries
18 entries across 18 versions & 1 rubygems