lib/rspec/matchers/compatibility.rb in rspec-expectations-2.0.0.beta.8 vs lib/rspec/matchers/compatibility.rb in rspec-expectations-2.0.0.beta.9
- old
+ new
@@ -1,6 +1,6 @@
-Rspec::Matchers.constants.each do |c|
- if Class === (klass = Rspec::Matchers.const_get(c))
+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