diff options
Diffstat (limited to 'spec/ruby/core/exception/script_error_spec.rb')
-rw-r--r-- | spec/ruby/core/exception/script_error_spec.rb | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/spec/ruby/core/exception/script_error_spec.rb b/spec/ruby/core/exception/script_error_spec.rb new file mode 100644 index 0000000000..5ca0333261 --- /dev/null +++ b/spec/ruby/core/exception/script_error_spec.rb @@ -0,0 +1,15 @@ +require File.expand_path('../../../spec_helper', __FILE__) + +describe "ScriptError" do + it "is a superclass of LoadError" do + ScriptError.should be_ancestor_of(LoadError) + end + + it "is a superclass of NotImplementedError" do + ScriptError.should be_ancestor_of(NotImplementedError) + end + + it "is a superclass of SyntaxError" do + ScriptError.should be_ancestor_of(SyntaxError) + end +end |