rspec_in_context 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rspec_in_context/in_context.rb +5 -1
- data/lib/rspec_in_context/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fbcbbb133cada94f2a4aa5531f35d138cfe5e585
|
4
|
+
data.tar.gz: be6564c7b36a380a104e487bbb8e6e58b215a6e4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '028a5a028a135be2c3403109aba620a8cb8b72c5371caebd9a89c9ba97beec5b94f739b3e2b5ea1e631c5ab8867961953ed29ddb64554a8f62a0f5e9d27fb70f'
|
7
|
+
data.tar.gz: 5fc71b2076fbc9836032f5764d4a0d1904d5ae03a7bb17d78b3365516e93ef7ee5cb9e27cf93ac6099cc16aadf04be26be0451faa78d691da7eea29d8f776adc
|
@@ -34,7 +34,11 @@ module RspecInContext
|
|
34
34
|
module ClassMethods
|
35
35
|
def in_context(context_name, *args, &block)
|
36
36
|
Thread.current[:test_block] = block
|
37
|
-
instance_exec
|
37
|
+
instance_exec do
|
38
|
+
context(context_name) do
|
39
|
+
instance_exec(*args, &InContext.find_context(context_name).block)
|
40
|
+
end
|
41
|
+
end
|
38
42
|
end
|
39
43
|
|
40
44
|
def execute_tests
|