From 60eaae4f7df1f1dae91defb87d3707451c359cf4 Mon Sep 17 00:00:00 2001 From: francis Date: Wed, 23 Jan 2008 01:48:14 +0000 Subject: Freeze in rails 2.0.2 (Am I going to regret having this beast in CVS?) --- vendor/rails-2.0.2/actionpack/test/testing_sandbox.rb | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 vendor/rails-2.0.2/actionpack/test/testing_sandbox.rb (limited to 'vendor/rails-2.0.2/actionpack/test/testing_sandbox.rb') diff --git a/vendor/rails-2.0.2/actionpack/test/testing_sandbox.rb b/vendor/rails-2.0.2/actionpack/test/testing_sandbox.rb new file mode 100644 index 000000000..b3b8b0f4d --- /dev/null +++ b/vendor/rails-2.0.2/actionpack/test/testing_sandbox.rb @@ -0,0 +1,11 @@ +module TestingSandbox + # Temporarily replaces KCODE for the block + def with_kcode(kcode) + old_kcode, $KCODE = $KCODE, kcode + begin + yield + ensure + $KCODE = old_kcode + end + end +end -- cgit v1.2.3