End of day commit
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user