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

Version Path
meducation_sdk-1.6.6 test/resources/external_resource_test.rb
meducation_sdk-1.6.5 test/resources/external_resource_test.rb
meducation_sdk-1.6.4 test/resources/external_resource_test.rb
meducation_sdk-1.6.3 test/resources/external_resource_test.rb
meducation_sdk-1.6.2 test/resources/external_resource_test.rb
meducation_sdk-1.6.1 test/resources/external_resource_test.rb
meducation_sdk-1.6.0 test/resources/external_resource_test.rb
meducation_sdk-1.5.7 test/resources/external_resource_test.rb
meducation_sdk-1.5.6 test/resources/external_resource_test.rb
meducation_sdk-1.5.5 test/resources/external_resource_test.rb
meducation_sdk-1.5.4 test/resources/external_resource_test.rb
meducation_sdk-1.5.3 test/resources/external_resource_test.rb
meducation_sdk-1.5.2 test/resources/external_resource_test.rb