Sha256: 78082f6f524dd37e5a71da039fa0aca2d5be017dc59116505be9dc78d09b82db
Contents?: true
Size: 588 Bytes
Versions: 6
Compression:
Stored size: 588 Bytes
Contents
require File.dirname(__FILE__) + "/../../../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
6 entries across 6 versions & 1 rubygems