Skip to content

Commit

Permalink
Modify spec steps to reflect admin become new user login
Browse files Browse the repository at this point in the history
  • Loading branch information
BasilMawejje committed Sep 18, 2019
1 parent b879c8b commit c6c5fc6
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
end

Then("I should navigate to {capture_string}") do |capture_string|
login_as(id = 1)
visit user_path(id = 1)
login_as(User.find(1))
visit user_path(User.find(1))
end

Then("I click {capture_string}") do |capture_string|
Expand Down

0 comments on commit c6c5fc6

Please sign in to comment.