[Tests] Update team member permission
This commit is contained in:
parent
2a67879b75
commit
b729004a50
1 changed files with 10 additions and 0 deletions
|
@ -7,6 +7,16 @@ describe "TeamMembers" do
|
|||
@project.add_access(@user, :read, :admin)
|
||||
end
|
||||
|
||||
describe "Update profile", :js => true do
|
||||
it "should update user role" do
|
||||
@project.master_access_for?(@user).should be_true
|
||||
visit team_project_path(@project)
|
||||
select "Developer", :from => "team_member_project_access"
|
||||
@project.master_access_for?(@user).should be_false
|
||||
@project.dev_access_for?(@user).should be_true
|
||||
end
|
||||
end
|
||||
|
||||
describe "View profile" do
|
||||
it "should be available" do
|
||||
visit(team_project_path(@project))
|
||||
|
|
Loading…
Reference in a new issue