Sha256: 530a4e163bef2273f1f649cf1052af633f2978ea51f1ed27fec3750f35d5cacd

Contents?: true

Size: 389 Bytes

Versions: 3

Compression:

Stored size: 389 Bytes

Contents

module Test
  module Unit
    class TestCase
      def run_with_hornsby(result, &progress_block)
        Hornsby.setup(self)
        run_without_hornsby(result, &progress_block)
        Hornsby.teardown
      end

      def self.enable_hornsby(options = {})
        include Hornsby::Helper
        Hornsby.load(options)
        alias_method_chain :run, :hornsby
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
sinsiliux-hornsby-0.4.0 lib/hornsby/test_unit_extensions.rb
sinsiliux-hornsby-0.4.1 lib/hornsby/test_unit_extensions.rb
hornsby-0.4.2 lib/hornsby/test_unit_extensions.rb