lib/generators/admin/install/templates/test_unit/system/admin/users_test.rb in administration-zero-0.0.9 vs lib/generators/admin/install/templates/test_unit/system/admin/users_test.rb in administration-zero-0.0.10

- old
+ new

@@ -5,39 +5,39 @@ @admin_user = admin_sign_in_as(admin_users(:lazaro_nixon)) end test "visiting the index" do visit admin_users_url - assert_selector "h2", text: "Admin users" + assert_selector "h2", text: "Users" end test "should create user" do visit admin_users_url - click_on "New admin user" + click_on "New user" fill_in "Email", with: "lazaronixon@hey.com" fill_in "Password", with: "Secret1*3*5*" fill_in "Password confirmation", with: "Secret1*3*5*" - click_on "Create Admin user" + click_on "Create User" assert_text "User was successfully created" end - test "should update User" do + test "should update user" do visit admin_user_url(@admin_user) - click_on "Edit admin user" + click_on "Edit user" fill_in "Email", with: @admin_user.email fill_in "Password", with: "NewSecret1*3*5*" fill_in "Password confirmation", with: "NewSecret1*3*5*" - click_on "Update Admin user" + click_on "Update User" assert_text "User was successfully updated" end - test "should destroy User" do + test "should destroy user" do visit admin_user_url(@admin_user) - page.accept_confirm { click_on "Delete admin user" } + page.accept_confirm { click_on "Delete user" } assert_text "User was successfully destroyed" end end