Commit 16b61590 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Spinach: admin logs, admin users

parent 66ecfa77
Feature: Admin Logs 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
Feature: Admin Users Feature: Admin Users
Background:
Given I sign in as an admin
And system has users
Scenario: On Admin Users
Given I visit admin users page
Then I should see all users
class AdminLogs < Spinach::FeatureSteps
include SharedAuthentication
include SharedPaths
include SharedAdmin
Then 'I should see tabs with available logs' do
page.should have_content 'production.log'
page.should have_content 'githost.log'
page.should have_content 'application.log'
end
end
class AdminUsers < Spinach::FeatureSteps
include SharedAuthentication
include SharedPaths
include SharedAdmin
Then 'I should see all users' do
User.all.each do |user|
page.should have_content user.name
end
end
end
...@@ -4,5 +4,9 @@ module SharedAdmin ...@@ -4,5 +4,9 @@ module SharedAdmin
And 'there are projects in system' do And 'there are projects in system' do
2.times { create(:project) } 2.times { create(:project) }
end end
And 'system has users' do
2.times { create(:user) }
end
end end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment