Commit b729004a authored by randx's avatar randx

[Tests] Update team member permission

parent 2a67879b
...@@ -7,6 +7,16 @@ describe "TeamMembers" do ...@@ -7,6 +7,16 @@ describe "TeamMembers" do
@project.add_access(@user, :read, :admin) @project.add_access(@user, :read, :admin)
end 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 describe "View profile" do
it "should be available" do it "should be available" do
visit(team_project_path(@project)) visit(team_project_path(@project))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment