Sha256: 5cb51528cc87f03778e2dfb32a388a47db3fc7b453498a8f0ad195240ac77655
Contents?: true
Size: 643 Bytes
Versions: 52
Compression:
Stored size: 643 Bytes
Contents
require File.expand_path('../../../spec_helper', __FILE__) require File.expand_path('../fixtures/classes', __FILE__) describe "Thread#[]=" do ruby_version_is ""..."1.9" do it "raises exceptions on the wrong type of keys" do lambda { Thread.current[nil] = true }.should raise_error(TypeError) lambda { Thread.current[5] = true }.should raise_error(ArgumentError) end end ruby_version_is "1.9" do it "raises exceptions on the wrong type of keys" do lambda { Thread.current[nil] = true }.should raise_error(TypeError) lambda { Thread.current[5] = true }.should raise_error(TypeError) end end end
Version data entries
52 entries across 52 versions & 2 rubygems