add test for RM-374

This commit is contained in:
Watson
2014-01-23 14:32:41 +09:00
parent cc2f913268
commit 825d18a5f7

View File

@@ -20,4 +20,13 @@ describe "NSExceptions" do
e.name.should == 'NSInvalidArgumentException'
end
end
it "should be raised with Kernel.raise" do
begin
raise NSException.exceptionWithName('NSInvalidArgumentException', reason:'Woops!', userInfo:nil)
rescue => e
e.class.should == NSException
e.name.should == 'NSInvalidArgumentException'
end
end
end