Fix signed in employee adding supplier functionality

This commit is contained in:
2015-02-24 18:07:44 +01:00
parent cb723ea432
commit db72cd06aa
5 changed files with 18 additions and 3 deletions
@@ -1,6 +1,6 @@
step 'there is a confirmed and open supplier' do
@supplier_password = 'secret1'
@employee = create :employee, email: 'supplier@mozo.bar', password: @supplier_password, confirmation_token: 'abc', confirmed_at: Time.now.utc
@employee = create :employee, email: 'supplier@mozo.bar', password: @supplier_password
@supplier = build :supplier, open: true
@supplier.add_manager @employee
@section = create :section, title: 'Room', supplier: @supplier, width: 8, height: 8