add failing spec
This commit is contained in:
@@ -36,7 +36,3 @@ step 'a new order on a table in another section is created' do
|
||||
@new_list = create :list, section: @other_section, table: @other_table, supplier: @supplier, user_ids: [@user.id]
|
||||
@new_order = @new_list.place_order(products: {@product.id => 3}, user: @user)
|
||||
end
|
||||
|
||||
step "I am signed in as a user" do
|
||||
step "I visit the user obtain token path"
|
||||
end
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
|
||||
step "There is no user information stored in the local storage" do
|
||||
step "there is no user information stored in the local storage" do
|
||||
visit '/'
|
||||
page.execute_script %|Qstorage = window.localStorage|
|
||||
page.evaluate_script(%|Qstorage.getItem('user_id')|).should be_blank
|
||||
@@ -10,8 +10,13 @@ step "I visit the user obtain token path" do
|
||||
visit user_root_path # obtain token through ember application
|
||||
end
|
||||
|
||||
step "I am signed in as a user" do
|
||||
step "there is a user" do
|
||||
@user ||= create :user
|
||||
end
|
||||
|
||||
step "I am signed in as a user" do
|
||||
step "there is a confirmed and open supplier"
|
||||
step "there is a user"
|
||||
visit test_login_admin_users_path(email: @user.email)
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user