Sha256: 2114a4d63ff758b4728b2d2795c20a185d6cb2b10bba2758c561f0c4cef86784
Contents?: true
Size: 269 Bytes
Versions: 18
Compression:
Stored size: 269 Bytes
Contents
RSpec::Matchers.define(:enumerate_method) do |obj, meth| match do |enum| if RUBY_VERSION < '1.9' enum.is_a?(Enumerable::Enumerator) else enum.is_a?(Enumerator) && (enum.inspect == "#<Enumerator: #{obj.inspect}:#{meth}>") end end end
Version data entries
18 entries across 18 versions & 1 rubygems