lib/lopata/world.rb in lopata-0.1.6 vs lib/lopata/world.rb in lopata-0.1.7

- old
+ new

@@ -1,22 +1,16 @@ +# Container for gobal non-configuration data class Lopata::World + # Scenarios are selected for current run + # @return [Array<Lopata::Scenario::Execution>] attr_reader :scenarios + # @private def initialize @scenarios = [] end - def start - notify_observers(:started, self) - end - - # Called at the end of test running. - # - # Notifies observers about testing finish - def finish - notify_observers(:finished, self) - end - + # @private def notify_observers(event, context) observers.each do |observer| observer.send event, context end end \ No newline at end of file