aboutsummaryrefslogtreecommitdiffstats
path: root/spec/ruby/core/exception/script_error_spec.rb
blob: 5ca0333261dec38a875e7b6c4816f01236535b6f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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