micro_test 0.3.8 → 0.3.9

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 524c09b5b9514cf4023d5bb58abcf6dcc7ad52c6
4
- data.tar.gz: 05480d5b5b6a3e837f2837514b9c710c66a2ce11
3
+ metadata.gz: 5011950e53e389633fbbc7b067872f0aead9987c
4
+ data.tar.gz: 61d73aaabe93d1fe7498f9faf9ae70ccbe620e09
5
5
  SHA512:
6
- metadata.gz: 8a195c853acbe6b9d59b38a3733d635a6c5b5e649bf0c9ea194ecbcd41b6d44a911419c55f09ce89a55afd6c1caa99d997d4a8b836c4405a1849e636aec7c1e5
7
- data.tar.gz: 0c1f98585bd59cdcc4701ad62ac8748e6854242e43acd6a1d445a2b4020f7a13f678a1965bd17bc21ea44c79f630574cfaf7d44767c953a0a26ab7cd96bde507
6
+ metadata.gz: d9b9e6eb9e5e15806abd5a3e92e2386804a6da528b08455936ae627f32cb13b46761117b08c426114dffa2d3fe2f29ed9de929ca696a0a4bff4a1b8cb5d4a9f5
7
+ data.tar.gz: 58b68dc657a552903c6e8e54c04ae430bbc04aace19b0ea2784c0e2b8d06208257b9750dfec1fce57d4c7cb45e2f8f57a84f106470701dfa8a4d548cc5692ec7
@@ -1,8 +1,11 @@
1
+ require "monitor"
2
+
1
3
  module MicroTest
2
4
 
3
5
  # A wrapper class for individual tests.
4
6
  # Exists for the purpose of isolating the test method so it can run in its own thread.
5
7
  class TestWrapper
8
+ include MonitorMixin
6
9
  attr_reader :test_class, :desc, :asserts, :duration
7
10
 
8
11
  # Constructor.
@@ -10,6 +13,7 @@ module MicroTest
10
13
  # @param [String] desc The test description.
11
14
  # @yield The block that defines the test code.
12
15
  def initialize(test_class, desc, &block)
16
+ super() # inits MonitorMixin
13
17
  @test_class = test_class
14
18
  @desc = desc
15
19
  create_method(:test, &block)
@@ -1,3 +1,3 @@
1
1
  module MicroTest
2
- VERSION = "0.3.8"
2
+ VERSION = "0.3.9"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: micro_test
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.8
4
+ version: 0.3.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nathan Hopkins
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-06-13 00:00:00.000000000 Z
11
+ date: 2013-06-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: os