Sha256: 01b4004003db9867750e26f5bee7a03166836dfa3ea8f55eae3d6c9eea5fbefc
Contents?: true
Size: 379 Bytes
Versions: 11
Compression:
Stored size: 379 Bytes
Contents
require 'rspec' require 'abstractivator/module_ext' describe 'module extensions' do describe '#type' do it 'returns a predicate that evaluates whether a value is_a? <this type>' do p = Enumerable.type? expect(p.call([])).to be true expect(p.call({})).to be true expect(p.call(nil)).to be false expect(p.call(1)).to be false end end end
Version data entries
11 entries across 11 versions & 1 rubygems