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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6996caf5015fee4ad0b693cb7e89fc2e34afbf49
4
- data.tar.gz: 9f9c259f3c10aad2b93fd7d7a9b51eef74d2d547
3
+ metadata.gz: fbcbbb133cada94f2a4aa5531f35d138cfe5e585
4
+ data.tar.gz: be6564c7b36a380a104e487bbb8e6e58b215a6e4
5
5
  SHA512:
6
- metadata.gz: 72b66d91112fbfcf6ebb2be0c524b531b8c77294988b9920da781070e2eea684501b458ab109122b50b5b89391183ccf4092e571b2db536c0ed5bfb934553dad
7
- data.tar.gz: 4059ba675a52c63ae0213f1768dfc45446d6a3076a0fa47fe344b77d34cba5bfbc048a14f68b94cd28605889139a5063719ad58538b49914b8a3f6fe52c03799
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(*args, &InContext.find_context(context_name).block)
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RspecInContext
4
- VERSION = "0.1.3"
4
+ VERSION = "0.1.4"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rspec_in_context
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Denis <Zaratan> Pasin