projects
/
feedcatcher.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
c36585104f5043d01f626876a58353ff16bfd0d9
[feedcatcher.git]
/
vendor
/
rails
/
actionpack
/
test
/
testing_sandbox.rb
1
module
TestingSandbox
2
# Temporarily replaces KCODE for the block
3
def
with_kcode
(
kcode
)
4
if
RUBY_VERSION
<
'1.9'
5
old_kcode
,
$KCODE
=
$KCODE
,
kcode
6
begin
7
yield
8
ensure
9
$KCODE
=
old_kcode
10
end
11
else
12
yield
13
end
14
end
15
end