Sha256: df31f804ed4d403eef179399f37609a98ad82aee9a52b573ce74e1a93fd8b851

Contents?: true

Size: 274 Bytes

Versions: 3

Compression:

Stored size: 274 Bytes

Contents

module Busted
  module Countable

    attr_reader :counter
    attr_writer :report

    def start_counter
      @counter = Counter.new

      counter.start
    end

    def finish_counter
      counter.finish

      report[:invalidations] = counter.report
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
busted-0.2.1 lib/busted/countable.rb
busted-0.2.0 lib/busted/countable.rb
busted-0.1.0 lib/busted/countable.rb