Sha256: 77c0486b9d8179498d17a4a982a8cdf84110ad3b488841a8bd63aeb38cc27623

Contents?: true

Size: 287 Bytes

Versions: 4

Compression:

Stored size: 287 Bytes

Contents

require 'rspec/expectations'

RSpec::Matchers.define :be_a_moneta_id do
  match do |actual|
    actual.is_a?(Integer) && actual.to_s.length >= 5
  end
end

RSpec::Matchers.define :be_a_bank_account_id do
  match do |actual|
    actual.is_a?(Integer) && actual.to_s.length == 4
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
moneta-api-2.1.0 spec/support/matchers.rb
moneta-api-2.0.0 spec/support/matchers.rb
moneta-api-2.0.0.rc2 spec/support/matchers.rb
moneta-api-2.0.0.rc1 spec/support/matchers.rb