test/test_helper.rb in surrounded-0.8.3 vs test/test_helper.rb in surrounded-0.8.4
- old
+ new
@@ -23,9 +23,19 @@
initialize(:user, :other_user)
trigger :access_other_object do
user.other_user.name
end
+
+ def block_method(*args, &block)
+ block.call(*args, self)
+ end
+ trigger :block_method
+
+ def regular_method_trigger
+ true
+ end
+ trigger :regular_method_trigger
end
# This is a different implementation of module_method_rebinding?
# created in order to check that the behavior of the code is correct.
#
\ No newline at end of file