Commit 16b61590ab4ca046ea7a2dbab3703367df56d108
1 parent
66ecfa77
Exists in
master
and in
4 other branches
Spinach: admin logs, admin users
Showing
5 changed files
with
37 additions
and
0 deletions
Show diff stats
features/admin/logs.feature
features/admin/users.feature
@@ -0,0 +1,11 @@ | @@ -0,0 +1,11 @@ | ||
1 | +class AdminLogs < Spinach::FeatureSteps | ||
2 | + include SharedAuthentication | ||
3 | + include SharedPaths | ||
4 | + include SharedAdmin | ||
5 | + | ||
6 | + Then 'I should see tabs with available logs' do | ||
7 | + page.should have_content 'production.log' | ||
8 | + page.should have_content 'githost.log' | ||
9 | + page.should have_content 'application.log' | ||
10 | + end | ||
11 | +end |
features/steps/shared/admin.rb
@@ -4,5 +4,9 @@ module SharedAdmin | @@ -4,5 +4,9 @@ module SharedAdmin | ||
4 | And 'there are projects in system' do | 4 | And 'there are projects in system' do |
5 | 2.times { create(:project) } | 5 | 2.times { create(:project) } |
6 | end | 6 | end |
7 | + | ||
8 | + And 'system has users' do | ||
9 | + 2.times { create(:user) } | ||
10 | + end | ||
7 | end | 11 | end |
8 | 12 |