summaryrefslogtreecommitdiff
path: root/features/steps/group/group.rb
diff options
context:
space:
mode:
Diffstat (limited to 'features/steps/group/group.rb')
-rw-r--r--features/steps/group/group.rb18
1 files changed, 18 insertions, 0 deletions
diff --git a/features/steps/group/group.rb b/features/steps/group/group.rb
index 04d8c874b3e..c6c6b4b5e5b 100644
--- a/features/steps/group/group.rb
+++ b/features/steps/group/group.rb
@@ -64,6 +64,24 @@ class Groups < Spinach::FeatureSteps
author: current_user
end
+ 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 => 'Samurai'
+ click_button "Create group"
+ end
+
+ Then 'I should see newly created group' do
+ page.should have_content "Samurai"
+ page.should have_content "You will only see events from projects in this group"
+ end
+
+ Then 'I should be redirected to group page' do
+ current_path.should == group_path(Group.last)
+ end
+
protected
def current_group