admin_active_tab.rb 679 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
class AdminActiveTab < Spinach::FeatureSteps
  include SharedAuthentication
  include SharedPaths
  include SharedActiveTab

  Then 'the active main tab should be Home' do
    ensure_active_main_tab('Stats')
  end

  Then 'the active main tab should be Projects' do
    ensure_active_main_tab('Projects')
  end

  Then 'the active main tab should be Users' do
    ensure_active_main_tab('Users')
  end

  Then 'the active main tab should be Logs' do
    ensure_active_main_tab('Logs')
  end

  Then 'the active main tab should be Hooks' do
    ensure_active_main_tab('Hooks')
  end

  Then 'the active main tab should be Resque' do
    ensure_active_main_tab('Resque')
  end
end