* Fixed/added specs for different account types.
[merb_mart.git] / spec / models / product_spec.rb
blob3277dd4995cce1e4d133f75ee4cf29c30c5070f9
1 require File.join( File.dirname(__FILE__), "..", "spec_helper" )
3 describe Product do
5   before(:each) do
6     @product = Product.new
7   end
9   it "should be valid" do
10     @product.title = "mousemat"
11     @product.slug = "mousemat"
12     @product.should be_valid
13     
14   end
16   describe "associations" do
17     it "should have many product images"
18     it "should have variations"
19     it "should have images"
20   
21     it "should have related products"
22     it "should have and belong to many tags"
23   end
24   
25   it "should have a search method"
26   it "should have a find_by_tags method"
27   
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"
34   
35   it "should allow related_product_ids to be set from a list"
37 end