summaryrefslogtreecommitdiff
path: root/spec/ruby/library/conditionvariable/marshal_dump_spec.rb
blob: f951a13e28973e40d9307f608f87659576d23c16 (plain)
1
2
3
4
5
6
7
8
9
require_relative '../../spec_helper'
require 'thread'

describe "ConditionVariable#marshal_dump" do
  it "raises a TypeError" do
    cv = ConditionVariable.new
    -> { cv.marshal_dump }.should raise_error(TypeError, /can't dump/)
  end
end