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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ca243b78a6f51d47c77b3e940c09f5e1bb3adc3d
4
- data.tar.gz: 8147c9a4cc679184b664a68f55c21a05948d8953
3
+ metadata.gz: 9bf2caee1ef50c01ab6f46cbc01adc8b1dde4f2e
4
+ data.tar.gz: 4634b4d4d16c34ce197cd959d1c15288783ce93b
5
5
  SHA512:
6
- metadata.gz: a2b8692b18209e4e66f1ad2c017f8d724f993a4d24dc091f188e40dcd17b0d3bd94e69a10a8a235b81f774c52a0a6708f8b0295fea91767b5740e402a12b630b
7
- data.tar.gz: b4228a83aea16b0febc1106cccffa46bfc556bcfc2634a9c7a4d7b20cc6d6ee82256fbf572b6f76c4f3d976dcc1f112c2b60828c6cef6a033b2440fd2c5a1b17
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 = FileList.new('test/*_{test,spec}.rb')
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
@@ -1,7 +1,10 @@
1
1
  require 'minitest/spec'
2
2
 
3
- class Minitest::Spec
4
- def self.around(&outer)
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)
@@ -1,4 +1,5 @@
1
1
  require 'minitest/unit'
2
+ require 'minitest/around/version'
2
3
 
3
4
  class Minitest::Test
4
5
  def send(name)
@@ -1,5 +1,5 @@
1
1
  module MiniTest
2
2
  module Around
3
- VERSION = '0.1.0.pre'
3
+ VERSION = '0.1.0.pre2'
4
4
  end
5
5
  end
data/test/around_spec.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  require 'minitest/autorun'
2
- require 'minitest/around'
2
+ require 'minitest/around/spec'
3
3
 
4
4
  describe "MiniTest Around" do
5
5
  describe "without around" do
data/test/around_test.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  require 'minitest/autorun'
2
- require 'minitest/around'
2
+ require 'minitest/around/unit'
3
3
 
4
4
  class TestWithoutAround < Minitest::Test
5
5
  def test_no_around_defined
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.pre
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-23 00:00:00.000000000 Z
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: