Fix failing spec.

This commit is contained in:
Ciro Santilli 2014-07-04 09:26:59 +02:00
parent 714f7201d3
commit c589029667
2 changed files with 4 additions and 3 deletions

View file

@ -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
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

View file

@ -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