This commit is contained in:
Captain Future
2011-04-17 16:26:36 +02:00
commit e6134722d4
39 changed files with 1199 additions and 0 deletions
+25
View File
@@ -0,0 +1,25 @@
require File.dirname(__FILE__) + '/../spec_helper'
describe Digital do
context 'validation' do
it { should belong_to(:variant) }
it { should have_valid_factory(:digital) }
end
context "#create" do
end
context "#destroy" do
#it "should destroy associated digital_links" do
# digital = Factory(:digital)
# 3.times { digital.digital_links.create! :order => Factory(:order) }
# DigitalLink.count.should == 3
# digital.destroy
# DigitalLink.count.should == 0
#end
end
end