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
usher-0.7.0 spec/rails2_2/vendor/rails/vendor/rails/actionpack/pkg/actionpack-2.2.2/test/testing_sandbox.rb
usher-0.7.0 spec/rails2_2/vendor/rails/vendor/rails/actionpack/test/testing_sandbox.rb
usher-0.7.0 spec/rails2_3/vendor/rails/vendor/rails/actionpack/pkg/actionpack-2.3.3/test/testing_sandbox.rb
usher-0.7.0 spec/rails2_3/vendor/rails/vendor/rails/actionpack/test/testing_sandbox.rb
ghazel-erubis_rails_helper-0.9.5.1 test/testing_sandbox.rb
ginst-2009.12.8 vendor/rails/actionpack/test/testing_sandbox.rb
actionpack-2.3.5 test/testing_sandbox.rb
ginst-2009.11.24 vendor/rails/actionpack/test/testing_sandbox.rb
ginst-2009.11.23 vendor/rails/actionpack/test/testing_sandbox.rb
ginst-2.0.1 vendor/rails/actionpack/test/testing_sandbox.rb
ginst-2.0.0 vendor/rails/actionpack/test/testing_sandbox.rb
gemstreamer-1.2.0 spec/assets/testapp/vendor/rails/actionpack/test/testing_sandbox.rb
gemstreamer-1.1.1 spec/assets/testapp/vendor/rails/actionpack/test/testing_sandbox.rb
gemstreamer-1.1.0 spec/assets/testapp/vendor/rails/actionpack/test/testing_sandbox.rb
gemstreamer-1.0.0 spec/assets/testapp/vendor/rails/actionpack/test/testing_sandbox.rb
gemstreamer-0.0.0 spec/assets/testapp/vendor/rails/actionpack/test/testing_sandbox.rb
radiant-rc-0.9.0 vendor/rails/actionpack/test/testing_sandbox.rb
actionpack-2.2.3 test/testing_sandbox.rb
webroar-0.2.2 src/admin_panel/vendor/rails/actionpack/test/testing_sandbox.rb
radiant-0.8.1 vendor/rails/actionpack/test/testing_sandbox.rb