Permalink
Browse files

Remove obsolete spec

- it wasn't running because it was dynamically bound to classes that
  were no longer being found.
- it was specifying an age-old protocol that isn't used by
  rspec-expectations, so it would never be used.
  • Loading branch information...
1 parent 3cf9110 commit 56260437bb139ca5801e1e826df972d2b4cff434 @dchelimsky dchelimsky committed May 13, 2012
Showing with 0 additions and 28 deletions.
  1. +0 −28 spec/rspec/matchers/compatibility_spec.rb
@@ -1,28 +0,0 @@
-require 'spec_helper'
-
-RSpec::Matchers.define :have_public_instance_method do |method|
- match do |klass|
- klass.public_instance_methods.any? {|m| [method, method.to_sym].include?(m)}
- end
-end
-
-(RSpec::Matchers.constants.sort).each do |c|
- if (Class === (klass = RSpec::Matchers.const_get(c)))
- describe klass do
- if klass.public_instance_methods.any? {|m| ['failure_message_for_should',:failure_message_for_should].include?(m)}
- describe "called with should" do
- subject { klass }
- it { should have_public_instance_method('failure_message_for_should')}
- it { should have_public_instance_method('failure_message')}
- end
- end
- if klass.public_instance_methods.any? {|m| ['failure_message_for_should_not',:failure_message_for_should_not].include?(m)}
- describe "called with should not" do
- subject { klass }
- it { should have_public_instance_method('failure_message_for_should_not')}
- it { should have_public_instance_method('negative_failure_message')}
- end
- end
- end
- end
-end

0 comments on commit 5626043

Please sign in to comment.