test/example_wrapper_test.rb in surrounded-0.8.3 vs test/example_wrapper_test.rb in surrounded-0.8.4
- old
+ new
@@ -2,17 +2,17 @@
# If you want to use wrappers, here's how you could
class WrapperContext
extend Surrounded::Context
- apply_roles_on(:trigger)
initialize(:admin, :task)
wrap :admin do
def some_admin_method
'hello from the admin wrapper!'
end
end
+ wrap :task do; end
trigger :do_something do
admin.some_admin_method
end
end
\ No newline at end of file