blob: a5810f178f243fde176b722a0f4ae6a0d21719a0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
require_relative '../../spec_helper'
describe "NameError" do
it "is a superclass of NoMethodError" do
NameError.should be_ancestor_of(NoMethodError)
end
end
describe "NameError.new" do
it "should take optional name argument" do
NameError.new("msg","name").name.should == "name"
end
end
|