summaryrefslogtreecommitdiff
path: root/spec/rubyspec/core/kernel/not_match_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/rubyspec/core/kernel/not_match_spec.rb')
-rw-r--r--spec/rubyspec/core/kernel/not_match_spec.rb21
1 files changed, 0 insertions, 21 deletions
diff --git a/spec/rubyspec/core/kernel/not_match_spec.rb b/spec/rubyspec/core/kernel/not_match_spec.rb
deleted file mode 100644
index 42bd45c106..0000000000
--- a/spec/rubyspec/core/kernel/not_match_spec.rb
+++ /dev/null
@@ -1,21 +0,0 @@
-require File.expand_path('../../../spec_helper', __FILE__)
-require File.expand_path('../fixtures/classes', __FILE__)
-
-describe "Kernel#!~" do
- class KernelSpecs::NotMatch
- def !~(obj)
- :foo
- end
- end
-
- it 'calls =~ internally and negates the result' do
- obj = Object.new
- obj.should_receive(:=~).and_return(true)
- (obj !~ :foo).should == false
- end
-
- it 'can be overridden in subclasses' do
- obj = KernelSpecs::NotMatch.new
- (obj !~ :bar).should == :foo
- end
-end