rspec_in_context 0.3.1 → 0.3.2
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 +1 -0
- data/lib/rspec_in_context/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 16804202a97639a71c266c5f798e83e5ce0ab2336d5536092001eee4b1c31c8e
|
4
|
+
data.tar.gz: 7e06de9d879148f5b1cd00e96ce06cabb80c682b1b84585095d66af8daf07e83
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 82cbcb2168d84f84161bf4b57ec73ad28540b5bf50054eb1c060a4e285c8028efa7bc2c6ca8f62b8f95a330897d067a860ee4fc315fab07fa076fb6a47de02f9
|
7
|
+
data.tar.gz: d0583543ee5ead5e55bb1ece006e633baf15e0eb8399a081a116b2c364e00df0b3ffe5046ca8546af3406f9d49598383722b27af6b0d960cf41a23da02681023
|
@@ -16,6 +16,7 @@ module RspecInContext
|
|
16
16
|
|
17
17
|
def add_context(context_name, owner = nil, namespace = nil, &block)
|
18
18
|
namespace ||= GLOBAL_CONTEXT
|
19
|
+
warn("Overriding an existing context: #{context_name}@#{namespace}") if contexts[namespace][context_name]
|
19
20
|
contexts[namespace][context_name] = Context.new(block, owner, context_name, namespace)
|
20
21
|
end
|
21
22
|
|