blob: f4300441a548a4b6dbf412567a1c3a2907170960 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
require_relative '../../spec_helper'
describe "UncaughtThrowError" do
it "is a subclass of ArgumentError" do
ArgumentError.should be_ancestor_of(UncaughtThrowError)
end
end
describe "UncaughtThrowError#tag" do
it "returns the object thrown" do
begin
throw :abc
rescue UncaughtThrowError => e
e.tag.should == :abc
end
end
end
|