Sha256: e47521fe4e4d45a54c2b9732735cddad7964602b363ea136dbc316f8678afba5
Contents?: true
Size: 423 Bytes
Versions: 4
Compression:
Stored size: 423 Bytes
Contents
require 'spec_helper' module Domain describe Reuse, "domain_check!" do it 'raises an ArgumentError when not correct reused instance' do lambda{ List.domain_check!('foo') }.should raise_error(TypeError) end it 'raises an ArgumentError when the predicate is not satisfied' do lambda{ Tuple.domain_check!("foo" => :bar) }.should raise_error(TypeError) end end end
Version data entries
4 entries across 4 versions & 1 rubygems