test/triad_test.rb in triad-0.1.2 vs test/triad_test.rb in triad-0.1.3
- old
+ new
@@ -9,10 +9,10 @@
it 'rejects arrays with more than 3 items' do
error = assert_raises(Triad::InvalidAddition){
triad << [:test, 'Test', Object.new, 'Other']
}
- assert_match /array length must be 3/, error.message
+ assert_match(/array length must be 3/, error.message)
end
it 'rejects arrays with fewer than 3 items' do
assert_raises(Triad::InvalidAddition){
triad << [:test, 'Test']
\ No newline at end of file