contextuality 1.0.3 → 1.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/contextuality.rb +1 -0
- data/lib/contextuality/version.rb +1 -1
- data/spec/contextuality_spec.rb +9 -0
- metadata +2 -2
data/lib/contextuality.rb
CHANGED
data/spec/contextuality_spec.rb
CHANGED
@@ -90,6 +90,15 @@ describe Contextuality do
|
|
90
90
|
end
|
91
91
|
end
|
92
92
|
|
93
|
+
context 'exceptions' do
|
94
|
+
specify do
|
95
|
+
contextualize(:hello => 'world') do
|
96
|
+
raise
|
97
|
+
end rescue nil
|
98
|
+
Contextuality.hello.should == nil
|
99
|
+
end
|
100
|
+
end
|
101
|
+
|
93
102
|
context 'defaults' do
|
94
103
|
before { Contextuality.defaults[:foo] = 'Bar' }
|
95
104
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: contextuality
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-12-
|
12
|
+
date: 2012-12-25 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: Contextual global variables
|
15
15
|
email:
|