spec/attachable_spec.rb in reviewed-0.7.1 vs spec/attachable_spec.rb in reviewed-0.8.0
- old
+ new
@@ -17,6 +17,10 @@
it 'fetches when a tag is not in pre-loaded set' do
@article.should_receive(:fetch_attachments).with({tags: 'foobar'})
@article.attachments('foobar').should eql([])
end
+
+ it 'uses the client to fetch scoped attachments' do
+ @article.attachments.count.should eql(1)
+ end
end