Skip to content

Commit

Permalink
test added
Browse files Browse the repository at this point in the history
  • Loading branch information
kronn committed Apr 23, 2010
1 parent a3d09bc commit e5a6466
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions plugins/adva_safemode/test/test_jail.rb
Expand Up @@ -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",
Expand Down

0 comments on commit e5a6466

Please sign in to comment.