Sha256: c373bed4f959223a3906309c77962ba07e383009a9c99f8504b5a62cd0363340
Contents?: true
Size: 528 Bytes
Versions: 1
Compression:
Stored size: 528 Bytes
Contents
require File.expand_path('../../test_helper', __FILE__) module Stripe class StripeErrorTest < Test::Unit::TestCase context "#to_s" do should "convert to string" do e = StripeError.new("message") assert_equal "message", e.to_s e = StripeError.new("message", 200) assert_equal "(Status 200) message", e.to_s e = StripeError.new("message", nil, nil, nil, { :request_id => "request-id" }) assert_equal "(Request request-id) message", e.to_s end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
stripe-1.58.0 | test/stripe/errors_test.rb |