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.13.0 spec/support/matchers.rb
moneta-api-1.12.8 spec/support/matchers.rb
moneta-api-1.12.7 spec/support/matchers.rb
moneta-api-1.12.6 spec/support/matchers.rb
moneta-api-1.12.5 spec/support/matchers.rb
moneta-api-1.12.4 spec/support/matchers.rb
moneta-api-1.12.3 spec/support/matchers.rb
moneta-api-1.12.2 spec/support/matchers.rb
moneta-api-1.12.1 spec/support/matchers.rb
moneta-api-1.12.0 spec/support/matchers.rb
moneta-api-1.11.0 spec/support/matchers.rb
moneta-api-1.10.0 spec/support/matchers.rb
moneta-api-1.9.0 spec/support/matchers.rb
moneta-api-1.8.0 spec/support/matchers.rb
moneta-api-1.7.0 spec/support/matchers.rb
moneta-api-1.6.0 spec/support/matchers.rb
moneta-api-1.5.0 spec/support/matchers.rb
moneta-api-1.4.0 spec/support/matchers.rb
moneta-api-1.3.0 spec/support/matchers.rb
moneta-api-1.2.1 spec/support/matchers.rb