Sha256: 9ee75776b4838644a3b0ef95afe708a172d362924b6a7ab8ab1e48f940402bb5
Contents?: true
Size: 877 Bytes
Versions: 1
Compression:
Stored size: 877 Bytes
Contents
module OpalSpec class Runner def self.autorun at_exit { OpalSpec::Runner.new.run } end def initialize @formatters = [ConsoleFormatter.new] end def run groups = ExampleGroup.example_groups @formatters.each { |f| f.start } groups.each { |group| group.run self } @formatters.each { |f| f.finish } end def example_group_started group @formatters.each { |f| f.example_group_started group } end def example_group_finished group @formatters.each { |f| f.example_group_finished group } end def example_started example @formatters.each { |f| f.example_started example } end def example_passed example @formatters.each { |f| f.example_passed example } end def example_failed example @formatters.each { |f| f.example_failed example } end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
opal-spec-0.0.1 | lib/opal/spec/runner.rb |