Fixed broken Digital#destroy spec

This commit is contained in:
Michael Bianco
2012-10-29 10:53:08 -04:00
parent d23462fadb
commit 6f2ad538a1
2 changed files with 8 additions and 9 deletions

View File

@@ -12,14 +12,13 @@ describe Spree::Digital do
end end
context "#destroy" do context "#destroy" do
#it "should destroy associated digital_links" do it "should destroy associated digital_links" do
# digital = FactoryGirl.create(:digital) digital = FactoryGirl.create(:digital)
# 3.times { digital.digital_links.create! :order => FactoryGirl.create(:order) } 3.times { digital.digital_links.create! }
# DigitalLink.count.should == 3 Spree::DigitalLink.count.should == 3
# digital.destroy digital.destroy
# DigitalLink.count.should == 0 Spree::DigitalLink.count.should == 0
#end end
end end
end end

View File

@@ -16,7 +16,7 @@ Gem::Specification.new do |s|
# test suite # test suite
s.add_development_dependency 'shoulda-matchers' s.add_development_dependency 'shoulda-matchers'
s.add_development_dependency 'capybara' s.add_development_dependency 'capybara'
s.add_development_dependency 'factory_girl' s.add_development_dependency 'factory_girl_rails', '~> 1.7.0'
s.add_development_dependency 'ffaker' s.add_development_dependency 'ffaker'
s.add_development_dependency 'rspec-rails' s.add_development_dependency 'rspec-rails'
s.add_development_dependency 'sqlite3' s.add_development_dependency 'sqlite3'