diff --git a/Examples/ruby/variables/runme.rb b/Examples/ruby/variables/runme.rb index f4ce9cc39..ab73a35e4 100644 --- a/Examples/ruby/variables/runme.rb +++ b/Examples/ruby/variables/runme.rb @@ -53,7 +53,7 @@ puts " Tring to set 'path'"; begin Example.path = "Whoa!" puts "Hey, what's going on?!?! This shouldn't work" -rescue +rescue NameError puts "Good." end @@ -61,7 +61,7 @@ puts " Trying to set 'status'"; begin Example.status = 0 puts "Hey, what's going on?!?! This shouldn't work" -rescue +rescue NameError puts "Good." end