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 +4 -4
- data/lib/micro_test/test_wrapper.rb +4 -0
- data/lib/micro_test/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5011950e53e389633fbbc7b067872f0aead9987c
|
4
|
+
data.tar.gz: 61d73aaabe93d1fe7498f9faf9ae70ccbe620e09
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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)
|
data/lib/micro_test/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2013-06-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: os
|