spec/article_spec.rb in reviewed-0.2.1 vs spec/article_spec.rb in reviewed-0.2.2
- old
+ new
@@ -24,9 +24,15 @@
it 'has_many :deals' do
Reviewed::Article._embedded_many.should include({"deals"=>Reviewed::Deal})
end
end
+ describe 'related_articles' do
+ it 'has_many :related_articles' do
+ Reviewed::Article._embedded_many.should include({"related_articles"=>Reviewed::Article})
+ end
+ end
+
describe 'products' do
it 'has_many :products' do
Reviewed::Article._embedded_many.should include({"products"=>Reviewed::Product})
end