dynamic_ruby 1.1.0 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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
|