Sha256: 97642725216beced87515a4ad467743824b027ef5608132a9244aa763e04f684
Contents?: true
Size: 381 Bytes
Versions: 4
Compression:
Stored size: 381 Bytes
Contents
require 'spec_helper' module Domain describe Union, "new" do it 'returns the value when it satisfies the predicate' do Boolean.new(true).should be(true) Boolean.new(false).should be(false) end it 'raises a type when the value is not a superclazz value' do lambda{ Boolean.new("12") }.should raise_error(TypeError) end end end
Version data entries
4 entries across 4 versions & 1 rubygems