Sha256: 6475dcfdacc9b5ac20342f6bf391ab1e2cc5345db0b9b65b95e124cf7d0421ff
Contents?: true
Size: 491 Bytes
Versions: 5
Compression:
Stored size: 491 Bytes
Contents
Spec::Matchers.constants.each do |c| if Class === (klass = Spec::Matchers.const_get(c)) if klass.public_instance_methods.include?('failure_message_for_should') klass.class_eval do alias_method :failure_message, :failure_message_for_should end end if klass.public_instance_methods.include?('failure_message_for_should_not') klass.class_eval do alias_method :negative_failure_message, :failure_message_for_should_not end end end end
Version data entries
5 entries across 5 versions & 1 rubygems