spec/support/matchers.rb in moneta-api-1.0.4 vs spec/support/matchers.rb in moneta-api-1.1.0

- old
+ new

@@ -1,7 +1,13 @@ require 'rspec/expectations' RSpec::Matchers.define :be_a_moneta_id do match do |actual| - Integer(actual) && actual.length > 5 + 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