diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-01-09 21:38:27 +0400 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-01-09 21:38:27 +0400 |
commit | 16b61590ab4ca046ea7a2dbab3703367df56d108 (patch) | |
tree | af15f200f896e7225680cbc4f9a459c182c06efd /features/steps/admin | |
parent | 66ecfa77e5105c8a8151db899e3d3a09dba3024e (diff) |
Spinach: admin logs, admin users
Diffstat (limited to 'features/steps/admin')
-rw-r--r-- | features/steps/admin/admin_logs.rb | 11 | ||||
-rw-r--r-- | features/steps/admin/admin_users.rb | 11 |
2 files changed, 22 insertions, 0 deletions
diff --git a/features/steps/admin/admin_logs.rb b/features/steps/admin/admin_logs.rb new file mode 100644 index 00000000000..83958545c4d --- /dev/null +++ b/features/steps/admin/admin_logs.rb @@ -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 diff --git a/features/steps/admin/admin_users.rb b/features/steps/admin/admin_users.rb new file mode 100644 index 00000000000..1828ae705ce --- /dev/null +++ b/features/steps/admin/admin_users.rb @@ -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 |