Sha256: 53ee96ae9d2b0e5d180020051edb09a96d611b0c6748081a3d8a937f21edfbb8
Contents?: true
Size: 533 Bytes
Versions: 1
Compression:
Stored size: 533 Bytes
Contents
::RSpec::Matchers.define :have_public_method_defined do |value| match do |klass| klass.public_method_defined?(value.to_sym) end description do "should define public instance method ##{value.to_s}" end failure_message_for_should do |klass| "expected #{klass.inspect} to define public instance method " \ "#{value.inspect}, but it didn't" end failure_message_for_should_not do |klass| "expected #{klass.inspect} to not define public instance method " \ "#{value.inspect}, but it did" end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
montage-0.4.0 | spec/lib/have_public_method_defined.rb |