Skip to content
Browse files

test added

  • Loading branch information...
1 parent a3d09bc commit e5a64662a16cb8fcd7634bcfe29e94140128fcda @kronn kronn committed
Showing with 12 additions and 0 deletions.
  1. +12 −0 plugins/adva_safemode/test/test_jail.rb
View
12 plugins/adva_safemode/test/test_jail.rb
@@ -25,6 +25,18 @@ def test_jail_instances_should_have_limited_methods
end
end
+ # def test_jail_instances_keep_try
+ # object = "string"
+ # object.instance_eval do
+ # def try(*args)
+ # "some try method which is so popular/useful nowadays"
+ # end
+ # end
+ #
+ # assert object.methods.include?("try"), "should have a try method without the jail"
+ # assert object.to_jail.methods.include?("try"), "should have kept the try method in the jail available"
+ # end
+
def test_jail_classes_should_have_limited_methods
expected = ["new", "methods", "name", "inherited", "method_added", "inspect",
"allow", "allowed?", "allowed_methods", "init_allowed_methods",

0 comments on commit e5a6466

Please sign in to comment.
Something went wrong with that request. Please try again.