spec/article_spec.rb in reviewed-0.4.2 vs spec/article_spec.rb in reviewed-0.4.3
- old
+ new
@@ -50,10 +50,10 @@
it 'does not has_many :attachments' do
Reviewed::Article._embedded_many.should_not include({"attachments"=>Reviewed::Attachment})
end
it 'gets gallery attachments' do
- attachments = @article.gallery(7)
+ attachments = @article.gallery('all', 7)
attachments.length.should == 7
end
it 'assigns attachments to the correct class' do
@article.attachments(:gallery).each do |attachment|