Sha256: c4134c964799e7aad64fcfb73525c4c0c84bf8a2f7e4a1ef83c744b4ba76ab96
Contents?: true
Size: 742 Bytes
Versions: 1
Compression:
Stored size: 742 Bytes
Contents
require_relative '../spec_helper' class SequentialIdsSpec < Skr::TestCase subject { Skr::Handlers::SequentialIds } let (:authentication) { Lanes::API::AuthenticationProvider.new({}) } let (:controller) { subject.new( Skr::Invoice, authentication, {}, {} ) } let (:sids) { controller.perform_retrieval[:data]['ids'] } it "retrieves the list of sequential ids" do assert_kind_of Array, sids sids[0...sids.length-2].each do | si | assert_includes Skr::Handlers::SequentialIds::TYPES, si['id'] assert_kind_of Fixnum, si['count'] end bank = skr_bank_account(:checking) assert sids.last['id'], Payment::SEQUENTIAL_ID_PREFIX + bank.id.to_s end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
stockor-0.4.0 | spec/server/handlers/sequential_ids_spec.rb |