]> git.wincent.com - walrat.git/blob - spec/continuation_wrapper_exception_spec.rb
Update to RSpec 3.1.0
[walrat.git] / spec / continuation_wrapper_exception_spec.rb
1 # Copyright 2007-2014 Greg Hurrell. All rights reserved.
2 # Licensed under the terms of the BSD 2-clause license.
3
4 require 'spec_helper'
5
6 describe 'creating a continuation wrapper exception' do
7   it 'complains if initialized with nil' do
8     expect do
9       Walrat::ContinuationWrapperException.new nil
10     end.to raise_error(ArgumentError, /nil continuation/)
11   end
12 end