Sha256: e6a6cd69ecf368bfd9cdcdd02df398ebc31055cc9006cfc7afbc45fe6d946c6e
Contents?: true
Size: 567 Bytes
Versions: 2
Compression:
Stored size: 567 Bytes
Contents
require "test_helper" require "russianpost/client" class TestClient < Minitest::Unit::TestCase def setup @client = RussianPost::Client.new end def test_returns_array_of_hashes VCR.use_cassette("valid_barcode") do response = @client.call(barcode: "RD025500807SE") assert_kind_of Array, response assert_kind_of Hash, response[0] end end def test_returns_nil_on_nonexistent_parcel VCR.use_cassette("nonexistent_parcel") do response = @client.call(barcode: "RR123456789EE") assert_nil response end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
russianpost-0.2.1 | test/russianpost/client_test.rb |
russianpost-0.2.0 | test/russianpost/client_test.rb |