Also adds basic test coverage around Api.paginate
Fixes PLAT-1357
Test Plan:
1) Create a test course and add 100 LTI tools to it:
course = Course.find(15)
(1..100).each do |n|
cet = ContextExternalTool.new(
url: "https://www.example.com",
name: "Tool ##{n}",
shared_secret:"foo",
consumer_key:"bar")
cet.context = course
cet.save!
end
2) Try to add an LTI tool to a module or as an
assignment, see that you can see all 100 tools.
Change-Id: I9c59d2286f928ad726917e9e794967dcf6ffca9d
Reviewed-on: https://gerrit.instructure.com/73680
Tested-by: Jenkins
Reviewed-by: Cody Cutrer <cody@instructure.com>
QA-Review: August Thornton <august@instructure.com>
Product-Review: Matthew Wheeler <mwheeler@instructure.com>