Spinach: admin logs, admin users
This commit is contained in:
parent
66ecfa77e5
commit
16b61590ab
5 changed files with 37 additions and 0 deletions
11
features/steps/admin/admin_logs.rb
Normal file
11
features/steps/admin/admin_logs.rb
Normal file
|
@ -0,0 +1,11 @@
|
|||
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
|
11
features/steps/admin/admin_users.rb
Normal file
11
features/steps/admin/admin_users.rb
Normal file
|
@ -0,0 +1,11 @@
|
|||
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
|
|||
And 'there are projects in system' do
|
||||
2.times { create(:project) }
|
||||
end
|
||||
|
||||
And 'system has users' do
|
||||
2.times { create(:user) }
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue