Commit b729004a500edf330fe68dbf6e5e6cdcb937b8d4
1 parent
2a67879b
Exists in
master
and in
4 other branches
[Tests] Update team member permission
Showing
1 changed file
with
10 additions
and
0 deletions
Show diff stats
spec/requests/team_members_spec.rb
@@ -7,6 +7,16 @@ describe "TeamMembers" do | @@ -7,6 +7,16 @@ describe "TeamMembers" do | ||
7 | @project.add_access(@user, :read, :admin) | 7 | @project.add_access(@user, :read, :admin) |
8 | end | 8 | end |
9 | 9 | ||
10 | + describe "Update profile", :js => true do | ||
11 | + it "should update user role" do | ||
12 | + @project.master_access_for?(@user).should be_true | ||
13 | + visit team_project_path(@project) | ||
14 | + select "Developer", :from => "team_member_project_access" | ||
15 | + @project.master_access_for?(@user).should be_false | ||
16 | + @project.dev_access_for?(@user).should be_true | ||
17 | + end | ||
18 | + end | ||
19 | + | ||
10 | describe "View profile" do | 20 | describe "View profile" do |
11 | it "should be available" do | 21 | it "should be available" do |
12 | visit(team_project_path(@project)) | 22 | visit(team_project_path(@project)) |