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
radiantcms-couchrest_model-0.1.2 vendor/rails/actionpack/test/testing_sandbox.rb
radiantcms-couchrest_model-0.1.1 vendor/rails/actionpack/test/testing_sandbox.rb
radiantcms-couchrest_model-0.1 vendor/rails/actionpack/test/testing_sandbox.rb
radiant-0.7.2 vendor/rails/actionpack/test/testing_sandbox.rb
actionpack-2.3.10 test/testing_sandbox.rb
actionpack-2.3.9 test/testing_sandbox.rb
actionpack-2.3.9.pre test/testing_sandbox.rb
vibes-bj-1.2.2 spec/rails_root/vendor/rails/actionpack/test/testing_sandbox.rb
vibes-bj-1.2.1 spec/rails_root/vendor/rails/actionpack/test/testing_sandbox.rb
webroar-0.4.0 src/admin_panel/vendor/rails/actionpack/test/testing_sandbox.rb
erubis_rails_helper-1.0.0 test/testing_sandbox.rb
radiant-0.9.1 vendor/rails/actionpack/test/testing_sandbox.rb
actionpack-2.3.8 test/testing_sandbox.rb
actionpack-2.3.8.pre1 test/testing_sandbox.rb
actionpack-2.3.7 test/testing_sandbox.rb
actionpack-2.3.6 test/testing_sandbox.rb
radiant-0.8.2 vendor/rails/actionpack/test/testing_sandbox.rb
radiant-0.9.0.rc2 vendor/rails/actionpack/test/testing_sandbox.rb
webroar-0.3.1 src/admin_panel/vendor/rails/actionpack/test/testing_sandbox.rb
webroar-0.3.0 src/admin_panel/vendor/rails/actionpack/test/testing_sandbox.rb