diff options
author | Ciro Santilli <ciro.santilli@gmail.com> | 2014-07-04 09:26:59 +0200 |
---|---|---|
committer | Ciro Santilli <ciro.santilli@gmail.com> | 2014-07-17 22:47:16 +0200 |
commit | c589029667644df4593572e2c94226bd2a5f7740 (patch) | |
tree | aa89558c39206d6aa48797b556100c77443ab66c /spec | |
parent | 714f7201d3362793d11f33793e5ef6dc83bdd2f0 (diff) | |
download | gitlab-ce-c589029667644df4593572e2c94226bd2a5f7740.tar.gz |
Fix failing spec.
Diffstat (limited to 'spec')
-rw-r--r-- | spec/features/issues_spec.rb | 4 | ||||
-rw-r--r-- | spec/support/login_helpers.rb | 3 |
2 files changed, 4 insertions, 3 deletions
diff --git a/spec/features/issues_spec.rb b/spec/features/issues_spec.rb index d7f3f3a302c..f0daf081018 100644 --- a/spec/features/issues_spec.rb +++ b/spec/features/issues_spec.rb @@ -226,7 +226,7 @@ describe "Issues", feature: true do issue.save end - it 'shows assignee text' do + it "shows assignee text", js: true do logout login_with guest @@ -262,7 +262,7 @@ describe "Issues", feature: true do issue.save end - it 'shows milestone text' do + it "shows milestone text", js: true do logout login_with guest diff --git a/spec/support/login_helpers.rb b/spec/support/login_helpers.rb index 88e4d0419cb..238ac7c6611 100644 --- a/spec/support/login_helpers.rb +++ b/spec/support/login_helpers.rb @@ -19,7 +19,8 @@ module LoginHelpers Thread.current[:current_user] = user end + # Requires Javascript driver. def logout - page.find(:css, ".icon-signout").click rescue nil + page.find(:css, ".icon-signout").click end end |