Skip to content

Commit 07c5291

Browse files
author
Tim Connor
committed
Add test case for issue#23
1 parent 56df8b8 commit 07c5291

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

spec/integration_spec.rb

+13-1
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,18 @@
118118
@article.languages_before_type_cast.should == '{"\\\\","\\""}'
119119
@article.languages.should == ["\\","\""]
120120
end
121-
end
122121

122+
it 'is able to be contatenated with new arrays' do
123+
article = Article.new
124+
article.languages = (article.languages || []) + ['a', 'b', 'c']
125+
article.save!
126+
article.reload
127+
article.languages.should == ['a', 'b', 'c']
128+
129+
article.languages += ['d']
130+
article.save!
131+
article.reload
132+
article.languages.should == ['a', 'b', 'c', 'd']
133+
end
134+
end
123135
end

0 commit comments

Comments
 (0)