minitest-spec-magic 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/minitest/spec/magic.rb +5 -0
  2. metadata +8 -8
@@ -14,6 +14,11 @@ class Test::Unit::TestCase
14
14
  extend MiniTest::Spec::Magic::Context
15
15
  include MiniTest::Spec::Magic::Expectations
16
16
  include MiniTest::Spec::Magic::Assertions
17
+
18
+ subject do
19
+ described = self.class.described_type
20
+ Class === described ? described.new : described
21
+ end
17
22
  end
18
23
 
19
24
  # Add magic for ActionController::TestCase
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: minitest-spec-magic
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -11,11 +11,11 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2011-10-26 00:00:00.000000000Z
14
+ date: 2011-10-27 00:00:00.000000000Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: minitest
18
- requirement: &19617100 !ruby/object:Gem::Requirement
18
+ requirement: &16600920 !ruby/object:Gem::Requirement
19
19
  none: false
20
20
  requirements:
21
21
  - - ~>
@@ -23,10 +23,10 @@ dependencies:
23
23
  version: 2.6.0
24
24
  type: :runtime
25
25
  prerelease: false
26
- version_requirements: *19617100
26
+ version_requirements: *16600920
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
- requirement: &19616360 !ruby/object:Gem::Requirement
29
+ requirement: &16600200 !ruby/object:Gem::Requirement
30
30
  none: false
31
31
  requirements:
32
32
  - - ! '>='
@@ -34,10 +34,10 @@ dependencies:
34
34
  version: '0'
35
35
  type: :development
36
36
  prerelease: false
37
- version_requirements: *19616360
37
+ version_requirements: *16600200
38
38
  - !ruby/object:Gem::Dependency
39
39
  name: bundler
40
- requirement: &19615640 !ruby/object:Gem::Requirement
40
+ requirement: &16599180 !ruby/object:Gem::Requirement
41
41
  none: false
42
42
  requirements:
43
43
  - - ! '>='
@@ -45,7 +45,7 @@ dependencies:
45
45
  version: '0'
46
46
  type: :development
47
47
  prerelease: false
48
- version_requirements: *19615640
48
+ version_requirements: *16599180
49
49
  description: Combines Minitest::Spec with shoulda-like goodies
50
50
  email: dimitrij@blacksquaremedia.com
51
51
  executables: []