aboutsummaryrefslogtreecommitdiffstats
path: root/spec/ruby/core/exception/arguments_spec.rb
blob: 47c4339e2d75945b929ce5379522b6f0b8bb2e3b (plain)
1
2
3
4
5
6
7
8
9
10
11
require File.expand_path('../../../spec_helper', __FILE__)

describe "ArgumentError" do
  it "is a subclass of StandardError" do
    StandardError.should be_ancestor_of(ArgumentError)
  end

  it "gives its own class name as message if it has no message" do
    ArgumentError.new.message.should == "ArgumentError"
  end
end