forked from robertmorrispainter/teachers_pet
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
convert add_to_team to use new team membership API
- Loading branch information
Showing
4 changed files
with
8 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,7 21,7 @@ | |
]) | ||
|
||
users[1..-1].each do |instructor| | ||
request_stubs << stub_request(:put, "https://testteacher:[email protected]/teams/101/members/#{instructor}") | ||
request_stubs << stub_request(:put, "https://testteacher:[email protected]/teams/101/memberships/#{instructor}") | ||
end | ||
|
||
teachers_pet(:add_to_team, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,7 32,7 @@ def stub_owners_only | |
request_stubs << stub_get_json("https://testteacher:[email protected]/teams/#{i}/members?per_page=100", []) | ||
|
||
# Add student to their team | ||
request_stubs << stub_request(:put, "https://testteacher:[email protected]/teams/#{i}/members/#{student}") | ||
request_stubs << stub_request(:put, "https://testteacher:[email protected]/teams/#{i}/memberships/#{student}") | ||
end | ||
|
||
teachers_pet(:create_student_teams, | ||
|
@@ -70,7 70,7 @@ def stub_owners_only | |
|
||
%w(teststudent1 teststudent2).each do |student| | ||
# Add student to their team | ||
request_stubs << stub_request(:put, "https://testteacher:[email protected]/teams/1/members/#{student}") | ||
request_stubs << stub_request(:put, "https://testteacher:[email protected]/teams/1/memberships/#{student}") | ||
end | ||
|
||
teachers_pet(:create_student_teams, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters