End of day commit

This commit is contained in:
2015-02-18 22:36:47 +01:00
parent 82670f271b
commit c1858455e9
68 changed files with 633 additions and 145 deletions
@@ -1,6 +1,6 @@
step "I am signed in as supplier" do
visit test_login_admin_suppliers_path(email: @supplier.email)
visit test_login_admin_employees_path(email: @employee.email)
#step 'visit the supplier sign in path'
#find('#supplier_email').set @supplier.email
#find('#supplier_password').set @supplier_password
@@ -1,5 +1,7 @@
step 'there is a confirmed and open supplier' do
@supplier_password = 'secret1'
@supplier = create :supplier, email: 'supplier@mozo.bar', password: @supplier_password, confirmation_token: 'abc', confirmed_at: Time.now.utc, open: true
@employee = create :employee, email: 'supplier@mozo.bar', password: @supplier_password, confirmation_token: 'abc', confirmed_at: Time.now.utc
@supplier = build :supplier, open: true
@supplier.add_manager @employee
@section = create :section, title: 'Room', supplier: @supplier, width: 8, height: 8
end