File tree 5 files changed +37
-0
lines changed
5 files changed +37
-0
lines changed Original file line number Diff line number Diff line change 1
1
Feature : Admin Logs
2
+ Background :
3
+ Given I sign in as an admin
2
4
5
+ Scenario : On Admin Logs
6
+ Given I visit admin logs page
7
+ Then I should see tabs with available logs
Original file line number Diff line number Diff line change 1
1
Feature : Admin Users
2
+ Background :
3
+ Given I sign in as an admin
4
+ And system has users
2
5
6
+ Scenario : On Admin Users
7
+ Given I visit admin users page
8
+ Then I should see all users
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
1
+ class AdminUsers < Spinach ::FeatureSteps
2
+ include SharedAuthentication
3
+ include SharedPaths
4
+ include SharedAdmin
5
+
6
+ Then 'I should see all users' do
7
+ User . all . each do |user |
8
+ page . should have_content user . name
9
+ end
10
+ end
11
+ end
Original file line number Diff line number Diff line change @@ -4,5 +4,9 @@ module SharedAdmin
4
4
And 'there are projects in system' do
5
5
2 . times { create ( :project ) }
6
6
end
7
+
8
+ And 'system has users' do
9
+ 2 . times { create ( :user ) }
10
+ end
7
11
end
8
12
You can’t perform that action at this time.
0 commit comments