continuing the refactor of the admin section
This commit is contained in:
@@ -11,12 +11,14 @@ feature 'Supplier main board spec.rb', %q{
|
||||
create_supplier 'supplier@qwaiter.com'
|
||||
create_user 'user@qwaiter.com'
|
||||
end
|
||||
|
||||
def create_active_list(options = {})
|
||||
@table = create :table, supplier: @supplier
|
||||
@list = create :list, supplier: @supplier, table: @table, user_ids: [@user.id]
|
||||
|
||||
end
|
||||
|
||||
context "using javascript", js: true do
|
||||
|
||||
scenario 'the active list should be present and contained in row having its id' do
|
||||
create_active_list
|
||||
login_supplier_as 'supplier@qwaiter.com'
|
||||
|
||||
Reference in New Issue
Block a user