1 require File.join( File.dirname(__FILE__), "..", "spec_helper" )
9 it "should be valid" do
10 @product.title = "mousemat"
11 @product.slug = "mousemat"
12 @product.should be_valid
16 describe "associations" do
17 it "should have many product images"
18 it "should have variations"
19 it "should have images"
21 it "should have related products"
22 it "should have and belong to many tags"
25 it "should have a search method"
26 it "should have a find_by_tags method"
28 it "should provide a list of tags"
30 it "should provide a display price"
31 it "should provide a quantity"
32 it "should provide a is_published"
33 it "should provide a is_on_sale"
35 it "should allow related_product_ids to be set from a list"