Fix failing spec.
This commit is contained in:
parent
714f7201d3
commit
c589029667
2 changed files with 4 additions and 3 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue