Sha256: 52d27d9a13b31f0e7c117e455e01120b3ecc7e749f919280156b658f5898d622
Contents?: true
Size: 605 Bytes
Versions: 33
Compression:
Stored size: 605 Bytes
Contents
require_relative '../test_helper' require_relative '../resource_test' module MeducationSDK class DashboardItemTest < ResourceTest test_resource(DashboardItem, '/dashboard_items') def test_user_calls_sdk dashboard_item = DashboardItem.new(user_id: 3, item_type: "MediaFile", item_id: 17) MeducationSDK::User.expects(:find).with(3) dashboard_item.user end def test_item_calls_sdk dashboard_item = DashboardItem.new(user_id: 3, item_type: "MediaFile", item_id: 17) MeducationSDK::MediaFile.expects(:find).with(17) dashboard_item.item end end end
Version data entries
33 entries across 33 versions & 1 rubygems