Commit c5890296 authored by Ciro Santilli's avatar Ciro Santilli

Fix failing spec.

parent 714f7201
...@@ -226,7 +226,7 @@ describe "Issues", feature: true do ...@@ -226,7 +226,7 @@ describe "Issues", feature: true do
issue.save issue.save
end end
it 'shows assignee text' do it "shows assignee text", js: true do
logout logout
login_with guest login_with guest
...@@ -262,7 +262,7 @@ describe "Issues", feature: true do ...@@ -262,7 +262,7 @@ describe "Issues", feature: true do
issue.save issue.save
end end
it 'shows milestone text' do it "shows milestone text", js: true do
logout logout
login_with guest login_with guest
......
...@@ -19,7 +19,8 @@ module LoginHelpers ...@@ -19,7 +19,8 @@ module LoginHelpers
Thread.current[:current_user] = user Thread.current[:current_user] = user
end end
# Requires Javascript driver.
def logout def logout
page.find(:css, ".icon-signout").click rescue nil page.find(:css, ".icon-signout").click
end end
end end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment