Sha256: ed5694663fd85af0ae88006b275ab8d607c2903d0a07a9f7e6eb4861567a6785

Contents?: true

Size: 766 Bytes

Versions: 3

Compression:

Stored size: 766 Bytes

Contents

module Spec  
  module Runner
    class ExampleGroupRunner
      
      def initialize(options)
        @options = options
      end
      
      def run
        prepare
        # puts "RUNNING"
        #`console.log(#{example_groups})`
        example_groups.each do |group|
          # puts "running group!"
          #puts group
          group.run @options
        end
        finish
      end
      
      def example_groups
        @options.example_groups
      end
      
      def prepare
        rep = reporter
        rep.start number_of_examples
      end
      
      def finish

      end
      
      def reporter
        @options.reporter
      end
      
      def number_of_examples
        0
      end
      
    end # ExampleGroupRunner
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
opal-0.3.2 gems/ospec/lib/ospec/runner/example_group_runner.rb
opal-0.3.1 gems/ospec/lib/ospec/runner/example_group_runner.rb
opal-0.3.0 gems/ospec/lib/ospec/runner/example_group_runner.rb