gitlab-org--gitlab-foss/spec/features/admin/admin_browses_logs_spec.rb
Toon Claes ddf892b9f2 Put loggers in before_action for easier overriding in EE
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.
2017-09-06 15:25:51 +02:00

17 lines
399 B
Ruby

require 'spec_helper'
describe 'Admin browses logs' do
before do
sign_in(create(:admin))
end
it 'shows available log files' do
visit admin_logs_path
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