diff options
Diffstat (limited to 'spec/rubyspec/core/regexp/initialize_spec.rb')
-rw-r--r-- | spec/rubyspec/core/regexp/initialize_spec.rb | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/spec/rubyspec/core/regexp/initialize_spec.rb b/spec/rubyspec/core/regexp/initialize_spec.rb deleted file mode 100644 index 3c32f97a31..0000000000 --- a/spec/rubyspec/core/regexp/initialize_spec.rb +++ /dev/null @@ -1,15 +0,0 @@ -require File.expand_path('../../../spec_helper', __FILE__) - -describe "Regexp#initialize" do - it "is a private method" do - Regexp.should have_private_method(:initialize) - end - - it "raises a SecurityError on a Regexp literal" do - lambda { //.send(:initialize, "") }.should raise_error(SecurityError) - end - - it "raises a TypeError on an initialized non-literal Regexp" do - lambda { Regexp.new("").send(:initialize, "") }.should raise_error(TypeError) - end -end |