Sha256: fe75305a128055bf27b33bafc945f2c37ab09954273f473a1dba5a41ebb10903

Contents?: true

Size: 265 Bytes

Versions: 22

Compression:

Stored size: 265 Bytes

Contents

require 'rspec/expectations'

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

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

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
moneta-api-1.2.0 spec/support/matchers.rb
moneta-api-1.1.0 spec/support/matchers.rb