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

Version Path
rango-0.0.6 vendor/rspec/lib/spec/matchers/compatibility.rb
rango-0.1.pre vendor/rspec/lib/spec/matchers/compatibility.rb
pupu-0.0.1 vendor/rspec/lib/spec/matchers/compatibility.rb
media-path-0.1 vendor/rspec/lib/spec/matchers/compatibility.rb
simple-templater-0.0.1 vendor/rspec/lib/spec/matchers/compatibility.rb
middleman-0.10.17 vendor/gems/gems/rspec-1.2.9/lib/spec/matchers/compatibility.rb
middleman-0.10.16 vendor/gems/gems/rspec-1.2.9/lib/spec/matchers/compatibility.rb
middleman-0.10.15 vendor/gems/gems/rspec-1.2.9/lib/spec/matchers/compatibility.rb
rackjour-0.1.8 vendor/gems/gems/rspec-1.2.9/lib/spec/matchers/compatibility.rb
middleman-0.10.14 vendor/gems/gems/rspec-1.2.9/lib/spec/matchers/compatibility.rb
ageweke-rspec-1.2.9 lib/spec/matchers/compatibility.rb
rspec-1.2.9 lib/spec/matchers/compatibility.rb
rspec-1.2.7 lib/spec/matchers/compatibility.rb
rspec-1.2.8 lib/spec/matchers/compatibility.rb
rspec-1.2.6 lib/spec/matchers/compatibility.rb
rspec-1.2.5 lib/spec/matchers/compatibility.rb