minitest-around 0.1.0.pre → 0.1.0.pre2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +11 -2
- data/lib/minitest/around/spec.rb +5 -2
- data/lib/minitest/around/unit.rb +1 -0
- data/lib/minitest/around/version.rb +1 -1
- data/test/around_spec.rb +1 -1
- data/test/around_test.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9bf2caee1ef50c01ab6f46cbc01adc8b1dde4f2e
|
4
|
+
data.tar.gz: 4634b4d4d16c34ce197cd959d1c15288783ce93b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4f6ceb34a1d7bd1044fd01e1c6be9de438282516242ebcdc74f394dd9829662f0ad7c9c29ebb0c23153e9ce71b288e4f5e7535eaa2a9135bf19d448bbb9bbcd1
|
7
|
+
data.tar.gz: fafcdfbb46f67f25e4d9ba9e7b0d3e99b1b99c8a19abc515db2e3b06ff858256e35091816223d68a13e1cf6136d411ed76d6917e9def5ca81d8d9277438d2603
|
data/Rakefile
CHANGED
@@ -4,9 +4,18 @@ desc 'Default: run unit tests.'
|
|
4
4
|
task :default => :test
|
5
5
|
|
6
6
|
# Test
|
7
|
+
TEST_FILES = FileList.new('test/*_{test,spec}.rb')
|
8
|
+
|
9
|
+
desc "Run all tests"
|
10
|
+
task :test do
|
11
|
+
TEST_FILES.each do |test_file|
|
12
|
+
sh "bundle", "exec", "rake", "test:isolated", "TEST=#{test_file}"
|
13
|
+
end
|
14
|
+
end
|
15
|
+
|
7
16
|
require 'rake/testtask'
|
8
|
-
Rake::TestTask.new(:test) do |test|
|
9
|
-
test.test_files =
|
17
|
+
Rake::TestTask.new(:"test:isolated") do |test|
|
18
|
+
test.test_files = TEST_FILES
|
10
19
|
test.libs << 'test'
|
11
20
|
test.verbose = true
|
12
21
|
end
|
data/lib/minitest/around/spec.rb
CHANGED
@@ -1,7 +1,10 @@
|
|
1
1
|
require 'minitest/spec'
|
2
2
|
|
3
|
-
|
4
|
-
|
3
|
+
require 'minitest/around/version'
|
4
|
+
require 'minitest/around/unit'
|
5
|
+
|
6
|
+
module Minitest::Spec::DSL
|
7
|
+
def around(&outer)
|
5
8
|
define_method(:around) do |&inner|
|
6
9
|
if outer.arity == 1
|
7
10
|
outer.call(inner)
|
data/lib/minitest/around/unit.rb
CHANGED
data/test/around_spec.rb
CHANGED
data/test/around_test.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: minitest-around
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.0.
|
4
|
+
version: 0.1.0.pre2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Peter Suschlik
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-09-
|
11
|
+
date: 2013-09-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: minitest
|
@@ -86,3 +86,4 @@ signing_key:
|
|
86
86
|
specification_version: 4
|
87
87
|
summary: Around block for minitest.
|
88
88
|
test_files: []
|
89
|
+
has_rdoc:
|