spec/attachable_spec.rb in reviewed-0.9.0 vs spec/attachable_spec.rb in reviewed-0.9.1

- old
+ new

@@ -20,10 +20,10 @@ @article.attachments(tags: 'foobar').should eql([]) end it 'merges local and fetched tags' do @article.stub(:fetch_attachments). - and_return(Reviewed::Article.new(tags: ['fetched'])) + and_return([Reviewed::Article.new(tags: ['fetched'])]) @article.should_receive(:fetch_attachments).with({tags: ['foobar']}) attachments = @article.attachments(tags: ['hero', 'foobar']) attachments.count.should eql(2) attachments.map(&:tags).flatten.should eql(['hero', 'fetched']) end