Sha256: 50bb85a869779af9a8cd82e285e051179f21ccfed88367bcb3e148909ec744c2
Contents?: true
Size: 255 Bytes
Versions: 10
Compression:
Stored size: 255 Bytes
Contents
RSpec::Matchers.define :have_trait do |trait_name| match do |instance| instance.defined_traits.any? do |trait| trait.name == trait_name && trait.send(:block) == @block end end chain :with_block do |block| @block = block end end
Version data entries
10 entries across 7 versions & 4 rubygems