Sha256: 338047c60a086567be38a06383f5c408c2e8bccdd179e4a72e7589f64d093a36
Contents?: true
Size: 581 Bytes
Versions: 36
Compression:
Stored size: 581 Bytes
Contents
Spec::Matchers.constants.each do |c| if Class === (klass = Spec::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
36 entries across 36 versions & 11 rubygems