blob: 0b283e9a5482509559be5071fae704c36e4718cb (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
require_relative '../../spec_helper'
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
|