module Sus::Context

def before(&hook)

@parameter hook [Proc] The block to execute before each test.

Before hooks are usually invoked in the order they are defined, i.e. the first defined hook is invoked first.

Include an around method to the context class, that invokes the given block before running the test.
def before(&hook)
	wrapper = Module.new
	
	wrapper.define_method(:before) do
		super()
		
		instance_exec(&hook)
	end
	
	self.include(wrapper)
end