Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrey Kumanyaev <me@zzet.org>2012-12-26 02:52:49 +0400
committerAndrey Kumanyaev <me@zzet.org>2012-12-26 19:52:15 +0400
commit25c57637807bac79037c4d791979951bf13ed056 (patch)
tree131a592a32b3e580bdc2859c9aef7ea486f2af40 /features/steps/group
parent9c574464a6051536ee83a93e8270a7dd9d85da33 (diff)
Add functional in user section
Diffstat (limited to 'features/steps/group')
-rw-r--r--features/steps/group/group.rb19
1 files changed, 19 insertions, 0 deletions
diff --git a/features/steps/group/group.rb b/features/steps/group/group.rb
index 4de260ec33e..03693852072 100644
--- a/features/steps/group/group.rb
+++ b/features/steps/group/group.rb
@@ -32,6 +32,25 @@ class Groups < Spinach::FeatureSteps
end
end
+ Given 'I have new user "John"' do
+ create(:user, name: "John")
+ end
+
+ When 'I select user "John" from list with role "Reporter"' do
+ user = User.find_by_name("John")
+ within "#new_team_member" do
+ select user.name, :from => "user_ids"
+ select "Reporter", :from => "project_access"
+ end
+ click_button "Add"
+ end
+
+ Then 'I should see user "John" in team list' do
+ user = User.find_by_name("John")
+ projects_with_access = find(".ui-box .well-list li")
+ projects_with_access.should have_content("John")
+ end
+
Given 'project from group has issues assigned to me' do
create :issue,
project: project,