Skip to content

Commit

Permalink
Add test case for issue#23
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim Connor committed Feb 21, 2013
1 parent 56df8b8 commit 07c5291
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion spec/integration_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,18 @@
@article.languages_before_type_cast.should == '{"\\\\","\\""}'
@article.languages.should == ["\\","\""]
end
end

it 'is able to be contatenated with new arrays' do
article = Article.new
article.languages = (article.languages || []) + ['a', 'b', 'c']
article.save!
article.reload
article.languages.should == ['a', 'b', 'c']

article.languages += ['d']
article.save!
article.reload
article.languages.should == ['a', 'b', 'c', 'd']
end
end
end

0 comments on commit 07c5291

Please sign in to comment.