Sha256: 85ad5b020420c3f30f3d5f6aaac18b971c132862fbe316e2910f89a16af83ade
Contents?: true
Size: 271 Bytes
Versions: 3
Compression:
Stored size: 271 Bytes
Contents
RSpec::Matchers.define :have_private_method do |name| match do |object| expect(object.private_methods).to include(name) end end RSpec::Matchers.define :have_public_method do |name| match do |object| expect(object.public_methods).to include(name) end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
hexx-7.1.0 | spec/support/matchers/methods.rb |
hexx-7.0.1 | spec/support/matchers/methods.rb |
hexx-7.0.0 | spec/support/matchers/methods.rb |