BigW Consortium Gitlab

active_tab.rb 995 Bytes
Newer Older
1
class Spinach::Features::AdminActiveTab < Spinach::FeatureSteps
2 3
  include SharedAuthentication
  include SharedPaths
4
  include SharedActiveTab
5

6
  step 'the active main tab should be Overview' do
Dmitriy Zaporozhets committed
7
    ensure_active_main_tab('Overview')
8 9
  end

10 11
  step 'the active sub tab should be Projects' do
    ensure_active_sub_tab('Projects')
12 13
  end

14 15
  step 'the active sub tab should be Groups' do
    ensure_active_sub_tab('Groups')
16 17
  end

18 19
  step 'the active sub tab should be Users' do
    ensure_active_sub_tab('Users')
20 21
  end

22
  step 'the active main tab should be Hooks' do
23 24 25
    ensure_active_main_tab('Hooks')
  end

26 27
  step 'the active main tab should be Monitoring' do
    ensure_active_main_tab('Monitoring')
28
  end
29

30 31
  step 'the active sub tab should be Resque' do
    ensure_active_sub_tab('Background Jobs')
32
  end
33

34 35
  step 'the active sub tab should be Logs' do
    ensure_active_sub_tab('Logs')
36 37
  end

38 39
  step 'the active main tab should be Messages' do
    ensure_active_main_tab('Messages')
40
  end
41
end