Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
10 lines (8 sloc) 177 Bytes
require "ofx"
RSpec::Matchers.define :have_key do |key|
match do |hash|
hash.respond_to?(:keys) &&
hash.keys.kind_of?(Array) &&
hash.keys.include?(key)
end
end