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
rspec-instructure-1.3.3 lib/spec/matchers/compatibility.rb
radiant-1.0.0 ruby-debug/ruby/1.8/gems/rspec-1.3.2/lib/spec/matchers/compatibility.rb
rspec-1.3.2 lib/spec/matchers/compatibility.rb
rspec-1.3.1 lib/spec/matchers/compatibility.rb
rspec-1.3.1.rc lib/spec/matchers/compatibility.rb
rspec-1.3.0 lib/spec/matchers/compatibility.rb
hubbub-0.0.11 lib/vendor/plugins/rspec/lib/spec/matchers/compatibility.rb
hubbub-0.0.10 lib/vendor/plugins/rspec/lib/spec/matchers/compatibility.rb
hubbub-0.0.9 lib/vendor/plugins/rspec/lib/spec/matchers/compatibility.rb
hubbub-0.0.8 lib/vendor/plugins/rspec/lib/spec/matchers/compatibility.rb
hubbub-0.0.6 lib/vendor/plugins/rspec/lib/spec/matchers/compatibility.rb
simple-templater-0.0.1.4 gems/gems/rspec-1.2.9/lib/spec/matchers/compatibility.rb
media-path-0.1.2 vendor/rspec/lib/spec/matchers/compatibility.rb
simple-templater-0.0.1.3 vendor/rspec/lib/spec/matchers/compatibility.rb
pupu-0.0.2.pre vendor/rspec/lib/spec/matchers/compatibility.rb
media-path-0.1.1.pre vendor/rspec/lib/spec/matchers/compatibility.rb
simple-templater-0.0.1.2 vendor/rspec/lib/spec/matchers/compatibility.rb
media-path-0.1.1 vendor/rspec/lib/spec/matchers/compatibility.rb
simple-templater-0.0.1.1 vendor/rspec/lib/spec/matchers/compatibility.rb
pupu-0.0.2 vendor/rspec/lib/spec/matchers/compatibility.rb