dynamic_ruby 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/spec/dynamic_ruby_spec.rb +3 -3
- metadata +1 -1
data/spec/dynamic_ruby_spec.rb
CHANGED
@@ -45,12 +45,12 @@ describe "dynamic scope" do
|
|
45
45
|
|
46
46
|
it "should clear setting within an exception" do
|
47
47
|
result = nil
|
48
|
-
|
49
|
-
proc do
|
48
|
+
begin
|
50
49
|
dynamic name: "john" do
|
51
50
|
exfun.call
|
52
51
|
end
|
53
|
-
|
52
|
+
rescue
|
53
|
+
end
|
54
54
|
result = dynamic[:name]
|
55
55
|
result.must_be_nil
|
56
56
|
end
|