2016-12-06 03:54:35 -05:00
|
|
|
require 'spec_helper'
|
|
|
|
|
|
|
|
describe 'Admin browses logs' do
|
|
|
|
before do
|
2017-06-21 19:44:10 -04:00
|
|
|
sign_in(create(:admin))
|
2016-12-06 03:54:35 -05:00
|
|
|
end
|
|
|
|
|
|
|
|
it 'shows available log files' do
|
|
|
|
visit admin_logs_path
|
|
|
|
|
2017-09-06 09:05:35 -04:00
|
|
|
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'
|
2016-12-06 03:54:35 -05:00
|
|
|
end
|
|
|
|
end
|