spec/support/matchers.rb in moneta-api-1.13.0 vs spec/support/matchers.rb in moneta-api-2.0.0.rc1
- old
+ new
@@ -1,13 +1,13 @@
require 'rspec/expectations'
RSpec::Matchers.define :be_a_moneta_id do
match do |actual|
- Integer(actual) && actual.length >= 5
+ actual.is_a?(Integer) && actual.to_s.length >= 5
end
end
RSpec::Matchers.define :be_a_bank_account_id do
match do |actual|
- Integer(actual) && actual.length == 4
+ actual.is_a?(Integer) && actual.to_s.length == 4
end
end