gitlab-org--gitlab-foss/features/steps/admin/admin_groups.rb

24 lines
530 B
Ruby
Raw Normal View History

2012-10-22 14:42:06 -04:00
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'
2012-11-27 14:33:56 -05:00
click_button "Create group"
2012-10-22 14:42:06 -04:00
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