diff options
| author | mo <mo.khan@gmail.com> | 2017-09-03 14:57:59 -0600 |
|---|---|---|
| committer | mo <mo.khan@gmail.com> | 2017-09-03 14:57:59 -0600 |
| commit | 2fe8923b80b89f336c960d59c267776235ef91e5 (patch) | |
| tree | b23a59134eb6b14f790817e911ae9140700036eb | |
| parent | a91992f519674b88080ca863ce9df78c0a794a24 (diff) | |
fix broken capybara spec.
| -rw-r--r-- | spec/support/pages/dashboard_page.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/spec/support/pages/dashboard_page.rb b/spec/support/pages/dashboard_page.rb index 54331655..4b74f47a 100644 --- a/spec/support/pages/dashboard_page.rb +++ b/spec/support/pages/dashboard_page.rb @@ -6,6 +6,8 @@ class DashboardPage < WebPage end def logout - click_link(I18n.t("logout")) + within ".nav-pills" do + click_link(I18n.t("logout")) + end end end |
