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

- old
+ new

@@ -4,19 +4,19 @@ it 'returns the value when it satisfies the predicate' do NegInt.new(-12).should eq(-12) end - it 'raises an argument error when the value does not satisfy the predicate' do + it 'raises a type error when the value does not satisfy the predicate' do lambda{ NegInt.new(12) - }.should raise_error(ArgumentError) + }.should raise_error(TypeError) end - it 'raises an argument error when the value is not a superclazz value' do + it 'raises a type error when the value is not a superclazz value' do lambda{ NegInt.new("bla") - }.should raise_error(ArgumentError) + }.should raise_error(TypeError) end end end