Sha256: 15a57ea501b8a635b5b6c9a39803c4819546fb8465a8a22bd731bd487c33922d
Contents?: true
Size: 558 Bytes
Versions: 7
Compression:
Stored size: 558 Bytes
Contents
require 'spec/spec_helper' # # Tests for image model extensions # describe Shop::Models::Image do dataset :shop_products, :shop_product_attachments before :each do @image = images(:soft_bread_front) end context 'relationships' do describe 'product' do it 'should accept and return a product object' do @shop_product = shop_products(:soft_bread) @image.shop_products << @shop_product @image.shop_products.include?(@shop_product).should === true end end end end
Version data entries
7 entries across 7 versions & 1 rubygems