Sha256: 03a43b719bd5c3f4988cc324341a340b2a84924e0a09d636e4729c81405e7a73
Contents?: true
Size: 558 Bytes
Versions: 1
Compression:
Stored size: 558 Bytes
Contents
class Lopata::World attr_reader :scenarios 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 def notify_observers(event, context) observers.each do |observer| observer.send event, context end end private # Define observers based on configuration def observers Lopata.configuration.observers end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
lopata-0.1.6 | lib/lopata/world.rb |