Sha256: ad8a40d539adf62cf88168a4de7f16fbe659876edb903f5f68749c7bf17e57ce
Contents?: true
Size: 583 Bytes
Versions: 18
Compression:
Stored size: 583 Bytes
Contents
Rspec::Matchers.constants.each do |c| if Class === (klass = Rspec::Matchers.const_get(c)) if klass.public_instance_methods.any? {|m| ['failure_message_for_should',:failure_message_for_should].include?(m)} klass.class_eval do alias_method :failure_message, :failure_message_for_should end end if klass.public_instance_methods.any? {|m| ['failure_message_for_should_not',:failure_message_for_should_not].include?(m)} klass.class_eval do alias_method :negative_failure_message, :failure_message_for_should_not end end end end
Version data entries
18 entries across 18 versions & 1 rubygems