admin_groups.rb 530 Bytes
Newer Older
randx's avatar
randx committed
1 2 3 4 5 6 7 8 9 10 11
class AdminGroups < Spinach::FeatureSteps
  include SharedAuthentication
  include SharedPaths
  include SharedActiveTab

  When 'I click new group link' do
    click_link "New Group"
  end

  And 'submit form with new group info' do
    fill_in 'group_name', :with => 'gitlab'
12
    click_button "Create group"
randx's avatar
randx committed
13 14 15 16 17 18 19 20 21 22 23
  end

  Then 'I should see newly created group' do
    page.should have_content "Group: gitlab"
  end

  Then 'I should be redirected to group page' do
    current_path.should == admin_group_path(Group.last)
  end
end