Sha256: 05cba219c7b84da5ceac0887153fc529bea509012080422b1d91cfaa1792112b
Contents?: true
Size: 670 Bytes
Versions: 10
Compression:
Stored size: 670 Bytes
Contents
require_relative '../test_helper' require_relative '../resource_test' module MeducationSDK class ExternalResourceTest < ResourceTest test_resource(ExternalResource, '/external_resources') def test_created_by_calls_sdk er = ExternalResource.new(created_by_id: 3) MeducationSDK::User.expects(:find).with(3) er.created_by end def test_responds_to_rating er = ExternalResource.new(rating: 5) assert er.respond_to?(:rating) end def test_can_retrigger_metadata_load Loquor.expects(:post).with('/external_resources/12/reimport_metadata', {}) ExternalResource.reimport_metadata(12) end end end
Version data entries
10 entries across 10 versions & 1 rubygems