rspec_in_context 0.1.4 → 0.1.5
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 +2 -4
- data/lib/rspec_in_context/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 79e623cca533412847e5cfa295efcf09c07013aa
|
4
|
+
data.tar.gz: '039f464399eeb81e60b8ee82c81b0f943e4691d8'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8dd6e58537b886f938111cdf3679060599d15b6b20fd6388317f1577504fdcb0db2f5d57a55fa7f36caa58e6ddb18c59b779aa89abf5de37fc85070eeccec851
|
7
|
+
data.tar.gz: c2ba4a408f479f43933a0bc4e8bacdf5634ee972307bed10eec548a27e7b3399440c3d7f40c9ea6451232c628d18c1fb3136d6d853e1f89f12deb1fa18116011
|
@@ -34,10 +34,8 @@ module RspecInContext
|
|
34
34
|
module ClassMethods
|
35
35
|
def in_context(context_name, *args, &block)
|
36
36
|
Thread.current[:test_block] = block
|
37
|
-
|
38
|
-
|
39
|
-
instance_exec(*args, &InContext.find_context(context_name).block)
|
40
|
-
end
|
37
|
+
context(context_name.to_s) do
|
38
|
+
instance_exec(*args, &InContext.find_context(context_name).block)
|
41
39
|
end
|
42
40
|
end
|
43
41
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rspec_in_context
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Denis <Zaratan> Pasin
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-09-
|
11
|
+
date: 2018-09-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|