mirror of
https://github.com/zhigang1992/RubyMotion.git
synced 2026-04-24 04:46:05 +08:00
add test for RM-374
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user