summaryrefslogtreecommitdiff
path: root/spec/features/admin/admin_browses_logs_spec.rb
diff options
context:
space:
mode:
authorToon Claes <toon@iotcl.com>2017-09-06 15:05:35 +0200
committerToon Claes <toon@iotcl.com>2017-09-06 15:25:51 +0200
commitddf892b9f26138c0fd43bbfa3b5d602ed954f59b (patch)
tree43191f15a4225104b65b68a8535852dcfbb789a4 /spec/features/admin/admin_browses_logs_spec.rb
parent24244d03b55bc7732b3362bab1e1cc7e04c2dabf (diff)
downloadgitlab-ce-ddf892b9f26138c0fd43bbfa3b5d602ed954f59b.tar.gz
Put loggers in before_action for easier overriding in EEtc-test-admin-log-links
Make it easier to override the set of loggers, by putting them in a separate method. Also modify spec so it tests for links, instead of checking for regular text.
Diffstat (limited to 'spec/features/admin/admin_browses_logs_spec.rb')
-rw-r--r--spec/features/admin/admin_browses_logs_spec.rb8
1 files changed, 5 insertions, 3 deletions
diff --git a/spec/features/admin/admin_browses_logs_spec.rb b/spec/features/admin/admin_browses_logs_spec.rb
index 3e3404dfdac..02f50d7e27f 100644
--- a/spec/features/admin/admin_browses_logs_spec.rb
+++ b/spec/features/admin/admin_browses_logs_spec.rb
@@ -8,8 +8,10 @@ describe 'Admin browses logs' do
it 'shows available log files' do
visit admin_logs_path
- expect(page).to have_content 'test.log'
- expect(page).to have_content 'githost.log'
- expect(page).to have_content 'application.log'
+ expect(page).to have_link 'application.log'
+ expect(page).to have_link 'githost.log'
+ expect(page).to have_link 'test.log'
+ expect(page).to have_link 'sidekiq.log'
+ expect(page).to have_link 'repocheck.log'
end
end