* Fixed/added specs for different account types.
[merb_mart.git] / spec / models / accounts / base_account_spec.rb
blob2f83b047c11ffbd9523629c94a130cdc30b2a748
1 require File.join( File.dirname(__FILE__), "..", "..", "spec_helper" )
3 describe Accounts::BaseAccount do
5   describe "associations" do
6     it "should have an order account type"
7     it "should have an order"
8     it "should belong to a customer (OrderUser)"
9   end
10   
11   it "should have a list of months" do
12     months = Accounts::BaseAccount.months
13     months.should_not == nil
14     months.empty?.should == false
15     months.length.should == 12
16     
17     months.first.should == 1
18     months.at(6).should == 7
19     months.last.should == 12
20   end
21   
22   it "should have a list of the next 10 years" do
23     years = Accounts::BaseAccount.years
24     years.should_not == nil
25     years.empty?.should == false
26     years.length.should == 10
27     
28     years.first.should == Date.today.year
29     years.at(5).should == Date.today.year + 5
30     years.last.should == Date.today.year + 9
31   end
32   
33   #it "should clear personal information" do
34   #  order_account = Accounts::BaseAccount.new
35   #  order_account.cc_number = '02301033012102010102'
36     
37   #end
38   
39   #it "should crypt cc_number" do
40   #  order_account = Accounts::BaseAccount.new
41   #end
42   
43   #it "should crypt account_number" do
44   #  order_account = Accounts::BaseAccount.new
45   #end
46   
47   #it "should get_unencrypted_number" do
48   #  order_account = Accounts::BaseAccount.new
49   #end
50   
51   #it "should set unencrypted number" do
52   #  order_account = Accounts::BaseAccount.new
53   #end
55 end