1 require File.join( File.dirname(__FILE__), "..", "..", "..", "spec_helper" )
3 describe Mart::Store::Promotion do
5 describe "associations" do
6 it "should belong to an item"
8 it "should have many orders"
11 it "should require a code"
12 it "should require a discount amount"
13 it "should require a discount type"
14 it "should require a description"
15 it "should require code to be unique"
16 it "should require discount amount to be numeric"
18 it "should generate a code"
20 it "should display any active promotions"
22 it "should provide whether it is active or not"
23 it "should provide a product_name setter"