Sha256: 03c42621be327b0cf17356cda2bec951d4a86f43d0b6d93ce3f713b0b8e3e14e

Contents?: true

Size: 274 Bytes

Versions: 95

Compression:

Stored size: 274 Bytes

Contents

module TestingSandbox
  # Temporarily replaces KCODE for the block
  def with_kcode(kcode)
    if RUBY_VERSION < '1.9'
      old_kcode, $KCODE = $KCODE, kcode
      begin
        yield
      ensure
        $KCODE = old_kcode
      end
    else
      yield
    end
  end
end

Version data entries

95 entries across 92 versions & 21 rubygems

Version Path
elkinsware-erubis_rails_helper-0.6.0 test/testing_sandbox.rb
elkinsware-erubis_rails_helper-0.6.1 test/testing_sandbox.rb
elkinsware-erubis_rails_helper-0.9.0 test/testing_sandbox.rb
elkinsware-erubis_rails_helper-0.9.1 test/testing_sandbox.rb
elkinsware-erubis_rails_helper-0.9.5 test/testing_sandbox.rb
ghazel-erubis_rails_helper-0.9.5 test/testing_sandbox.rb
actionpack-2.3.18 test/testing_sandbox.rb
actionpack_csi-2.3.5.p8 test/testing_sandbox.rb
actionpack-2.3.17-rack-upgrade-2.3.17 test/testing_sandbox.rb
actionpack-2.3.17 test/testing_sandbox.rb
actionpack_csi-2.3.5.p7 test/testing_sandbox.rb
actionpack_csi-2.3.5.p6 test/testing_sandbox.rb
actionpack-2.3.16 test/testing_sandbox.rb
actionpack-rack-upgrade-2-2.3.16 test/testing_sandbox.rb
actionpack-rack-upgrade-2-2.3.15 test/testing_sandbox.rb
actionpack-2.3.15 test/testing_sandbox.rb
actionpack-rack-upgrade-2.3.16 test/testing_sandbox.rb
actionpack-rack-upgrade-2.3.15 test/testing_sandbox.rb
actionpack-rack-upgrade-2.3.14 test/testing_sandbox.rb
radiant-1.0.0 ruby-debug/ruby/1.8/gems/actionpack-2.3.14/test/testing_sandbox.rb