summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2013-11-23 22:12:13 -0800
committerLamont Granquist <lamont@scriptkiddie.org>2013-11-23 22:12:13 -0800
commit558f425dc1782a210beee3ce7c4fa4e84041e86a (patch)
tree9db954a03c2b303115ba599d878bf5123b471b27 /spec
parent03a5314c5c20a7d540c418cfc65d578cb47f275d (diff)
downloadffi-yajl-558f425dc1782a210beee3ce7c4fa4e84041e86a.tar.gz
fix variable scope
Diffstat (limited to 'spec')
-rw-r--r--spec/ffi_yajl/json_gem_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/ffi_yajl/json_gem_spec.rb b/spec/ffi_yajl/json_gem_spec.rb
index 73071c3..bc0a866 100644
--- a/spec/ffi_yajl/json_gem_spec.rb
+++ b/spec/ffi_yajl/json_gem_spec.rb
@@ -84,8 +84,8 @@ describe "JSON Gem Compat API" do
end
context "when setting symbolize_keys via JSON.default_options" do
- before(:all) { saved_default = JSON.default_options[:symbolize_keys] }
- after(:all) { JSON.default_options[:symbolize_keys] = saved_default }
+ before(:all) { @saved_default = JSON.default_options[:symbolize_keys] }
+ after(:all) { JSON.default_options[:symbolize_keys] = @saved_default }
it "the default behavior should be to not symbolize keys" do
expect(JSON.parse('{"foo": 1234}')).to eq({"foo" => 1234})