spec/factory/union_domain/test_new.rb in domain-1.0.0.rc1 vs spec/factory/union_domain/test_new.rb in domain-1.0.0.rc2

- old
+ new

@@ -5,13 +5,13 @@ 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 an argument error when the value is not a superclazz value' do + it 'raises a type when the value is not a superclazz value' do lambda{ Boolean.new("12") - }.should raise_error(ArgumentError) + }.should raise_error(TypeError) end end end