Skip to content

Commit

Permalink
remove Logout after spec action
Browse files Browse the repository at this point in the history
  • Loading branch information
stepchud committed Nov 18, 2024
1 parent 9bdf7e9 commit 8707be5
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions spec/system/evaluation_form_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
system_login_user(user)
end

after do
system_logout
end
# after do
# system_logout
# end

it "is accessible" do
visit new_evaluation_form_path
Expand Down Expand Up @@ -198,9 +198,9 @@
system_login_user(user)
end

after do
system_logout
end
# after do
# system_logout
# end

it "is accessible" do
visit edit_evaluation_form_path(evaluation_form)
Expand Down Expand Up @@ -258,6 +258,7 @@

maybe_rebalance_criteria_weights(evaluation_form)
save_form
expect(page).to have_content("Evaluation Form Saved")

evaluation_form.reload
expect(evaluation_form.evaluation_criteria.length).to eq(num_criteria + 3)
Expand All @@ -280,6 +281,7 @@
evaluation_form.reload
maybe_rebalance_criteria_weights(evaluation_form)
save_form
expect(page).to have_content("Evaluation Form Saved")

evaluation_form.reload
# Criteria count should be the same since one was added and removed
Expand Down Expand Up @@ -308,9 +310,9 @@
system_login_user(user)
end

after do
system_logout
end
# after do
# system_logout
# end

it "is accessible" do
visit confirmation_evaluation_form_path(evaluation_form)
Expand Down

0 comments on commit 8707be5

Please sign in to comment.