Sha256: 9a6407827bda1b154ca2605245ccb9a08e96699babb7a3ad5e8fc01413aba44a
Contents?: true
Size: 522 Bytes
Versions: 13
Compression:
Stored size: 522 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 media_file = ExternalResource.new(created_by_id: 3) MeducationSDK::User.expects(:find).with(3) media_file.created_by end def test_responds_to_rating media_file = ExternalResource.new(rating: 5) assert media_file.respond_to?(:rating) end end end
Version data entries
13 entries across 13 versions & 1 rubygems