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
|
|
|
|
|
|
|
|
expect(page).to have_content 'test.log'
|
|
|
|
expect(page).to have_content 'githost.log'
|
|
|
|
expect(page).to have_content 'application.log'
|
|
|
|
end
|
|
|
|
end
|