make integration test work

This commit is contained in:
wvengen 2013-07-24 12:37:20 +02:00
parent 8af04e0112
commit 62682b7e64
5 changed files with 21 additions and 34 deletions

View file

@ -27,6 +27,9 @@ FactoryGirl.define do
factory :ordergroup do
type 'Ordergroup'
sequence(:name) {|n| "Order group ##{n}"}
# workaround to avoid needing to save the ordergroup
# avoids e.g. error after logging in related to applebar
after :create do |group| Ordergroup.find(group.id).update_stats! end
end
end