More group tests with spinach
This commit is contained in:
parent
83dc5f9362
commit
42abdf69d5
5 changed files with 98 additions and 4 deletions
24
features/steps/admin/admin_groups.rb
Normal file
24
features/steps/admin/admin_groups.rb
Normal file
|
@ -0,0 +1,24 @@
|
|||
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'
|
||||
fill_in 'group_code', :with => 'gitlab'
|
||||
click_button "Save group"
|
||||
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
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue