make integration test work
This commit is contained in:
parent
8af04e0112
commit
62682b7e64
5 changed files with 21 additions and 34 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue