mirror of
https://github.com/zhigang1992/RubyMotion.git
synced 2026-06-17 05:30:01 +08:00
6 lines
165 B
Ruby
6 lines
165 B
Ruby
describe "Java exceptions" do
|
|
it "can be catched by a rescue block" do
|
|
lambda { Java::Util::ArrayList.new.remove(42) }.should raise_error(Exception)
|
|
end
|
|
end
|