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 +4 -4
- data/lib/maxitest/implicit_subject.rb +3 -1
- data/lib/maxitest/version.rb +1 -1
- metadata +16 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1b4dfd79759c378dfebd1500e1e1ffc6b7eb2b2f
|
4
|
+
data.tar.gz: 66b4589d180982f44cc8baf2699698c048b1804c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
|
data/lib/maxitest/version.rb
CHANGED
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.
|
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-
|
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:
|