Updated testing to use spree 1.1 and new factorygirl syntax

This commit is contained in:
Michael Bianco committed 2012-06-07 10:50:40 -04:00
1 parent a8c27750ef
commit 5cfa1175af
10 files changed
+42 -43

No files matched your search

+4 -2
View File
@@ -1,3 +1,5 @@
Factory.define :digital, :class => Spree::Digital do |f|
f.variant { |p| p.association(:variant) }
FactoryGirl.define do
factory :digital, :class => Spree::Digital do |f|
f.variant { |p| p.association(:variant) }
end
end
+5 -3
View File
@@ -1,4 +1,6 @@
Factory.define :digital_link, :class => Spree::DigitalLink do |f|
f.digital { |p| p.association(:digital) }
f.line_item { |p| p.association(:line_item) }
FactoryGirl.define do
factory :digital_link, :class => Spree::DigitalLink do |f|
f.digital { |p| p.association(:digital) }
f.line_item { |p| p.association(:line_item) }
end
end