maxitest 1.0.1 → 1.0.2

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: 705a42e18244df2380f81a233c784af8ea638ba1
4
- data.tar.gz: 9dc882c2805c731b422f134a907273d3287bbce5
3
+ metadata.gz: 1b4dfd79759c378dfebd1500e1e1ffc6b7eb2b2f
4
+ data.tar.gz: 66b4589d180982f44cc8baf2699698c048b1804c
5
5
  SHA512:
6
- metadata.gz: 4f30d8f1497b3c12efd4af61ef8974f631a2ffbae5c84036c1c82bcc1f8e438a5b2ddf2921e96bbba9b25209c45baeb37d5c89fac8f5dab441dd6c10f198552a
7
- data.tar.gz: cfa1729e6af664c3bc349f22a2ca4d025c37f3911fefa4c6edafd04b82fb170d837100f671b511a1689d8becce2adef678eb904b1eb78dfa6e16915eaec3c199
6
+ metadata.gz: 7986e5578bdda099c558fb8c59176fc5a04baf390d9ad861bc4e02a64b8f069fa8fe973e0d1a425a6db16d79c62d38ae7195cb8350f520343db12b3d8b32177f
7
+ data.tar.gz: 256c240581bb2f4ed934f5b716e0683cea041dc49a68b6fda5bf3fd5f95652e14f7526cc08d21fc9a690fd16a505c576e1217b077a72fbec6166f4ec42988e7a
@@ -3,7 +3,9 @@ module Maxitest
3
3
  module ImplicitSubject
4
4
  def describe(*args, &block)
5
5
  klass = super
6
- klass.let(:subject) { args.first.new } if args.first.is_a?(Class)
6
+ if args.first.is_a?(Class) && !klass.instance_methods(false).include?(:subject)
7
+ klass.let(:subject) { args.first.new }
8
+ end
7
9
  klass
8
10
  end
9
11
  end
@@ -1,3 +1,3 @@
1
1
  module Maxitest
2
- VERSION = "1.0.1"
2
+ VERSION = "1.0.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: maxitest
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Grosser
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-11-23 00:00:00.000000000 Z
11
+ date: 2014-11-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: minitest
@@ -86,6 +86,20 @@ dependencies:
86
86
  - - ">="
87
87
  - !ruby/object:Gem::Version
88
88
  version: '0'
89
+ - !ruby/object:Gem::Dependency
90
+ name: byebug
91
+ requirement: !ruby/object:Gem::Requirement
92
+ requirements:
93
+ - - ">="
94
+ - !ruby/object:Gem::Version
95
+ version: '0'
96
+ type: :development
97
+ prerelease: false
98
+ version_requirements: !ruby/object:Gem::Requirement
99
+ requirements:
100
+ - - ">="
101
+ - !ruby/object:Gem::Version
102
+ version: '0'
89
103
  description:
90
104
  email: michael@grosser.it
91
105
  executables: