Move admin logs spinach test to rspec

https://gitlab.com/gitlab-org/gitlab-ce/issues/23036
This commit is contained in:
Semyon Pupkov 2016-12-06 13:54:35 +05:00
parent 18201ace36
commit e16bc50d36
4 changed files with 19 additions and 19 deletions

View file

@ -0,0 +1,4 @@
---
title: Move admin logs spinach test to rspec
merge_request: 7945
author: Semyon Pupkov

View file

@ -1,8 +0,0 @@
@admin
Feature: Admin Logs
Background:
Given I sign in as an admin
Scenario: On Admin Logs
Given I visit admin logs page
Then I should see tabs with available logs

View file

@ -1,11 +0,0 @@
class Spinach::Features::AdminLogs < Spinach::FeatureSteps
include SharedAuthentication
include SharedPaths
include SharedAdmin
step 'I should see tabs with available logs' do
expect(page).to have_content 'test.log'
expect(page).to have_content 'githost.log'
expect(page).to have_content 'application.log'
end
end

View file

@ -0,0 +1,15 @@
require 'spec_helper'
describe 'Admin browses logs' do
before do
login_as :admin
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