instiki/vendor/rails/actionpack/test/testing_sandbox.rb
Jacques Distler c358389f25 TeX and CSS tweaks.
Sync with latest Instiki Trunk
(Updates Rails to 1.2.2)
2007-02-09 02:04:31 -06:00

12 lines
205 B
Ruby

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