summaryrefslogtreecommitdiff
path: root/spec/ruby/library/conditionvariable/marshal_dump_spec.rb
blob: f32b784eaae760d8ed42c91dbffe52a0c8b09c9a (plain)
1
2
3
4
5
6
7
8
9
require File.expand_path('../../../spec_helper', __FILE__)
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