test/test_helper.rb in safemode-1.3.8 vs test/test_helper.rb in safemode-1.4.0

- old
+ new

@@ -108,13 +108,17 @@ def comment_class Comment end - def method_missing(method, *args, &block) - super(method, *args, &block) + def method_with_kwargs(a_keyword: false) + a_keyword end + + def method_missing(method, *args, **kwargs, &block) + super + end end class Comment attr_reader :article @@ -142,10 +146,10 @@ raise 'Destroyed all comments' end end class Article::Jail < Safemode::Jail - allow :title, :comments, :is_article?, :comment_class + allow :title, :comments, :is_article?, :comment_class, :method_with_kwargs def author_name "this article's author name" end end