Sha256: 58558845428b3c7875fb116624ac18869da49026549093f842953fab91e624fc

Contents?: true

Size: 831 Bytes

Versions: 9

Compression:

Stored size: 831 Bytes

Contents

require File.expand_path('../../test_helper', __FILE__)
require File.expand_path('../../resource_test', __FILE__)

module MeducationSDK
  class MediaFileTest < ResourceTest
    test_resource(MediaFile, '/media_files')

    def test_user_calls_sdk
      media_file = MediaFile.new(user_id: 3)
      MeducationSDK::User.expects(:find).with(3)
      media_file.user
    end

    def test_uploaded_state_is_correct
      assert_equal 1, MeducationSDK::MediaFile::State.uploaded
    end

    def test_processing_state_is_correct
      assert_equal 2, MeducationSDK::MediaFile::State.processing
    end

    def test_available_state_is_correct
      assert_equal 3, MeducationSDK::MediaFile::State.available
    end

    def test_redacted_state_is_correct
      assert_equal 4, MeducationSDK::MediaFile::State.redacted
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
meducation_sdk-0.6.0 test/resources/media_file_test.rb
meducation_sdk-0.5.0 test/resources/media_file_test.rb
meducation_sdk-0.4.1 test/resources/media_file_test.rb
meducation_sdk-0.4.0 test/resources/media_file_test.rb
meducation_sdk-0.3.4 test/resources/media_file_test.rb
meducation_sdk-0.3.3 test/resources/media_file_test.rb
meducation_sdk-0.3.2 test/resources/media_file_test.rb
meducation_sdk-0.3.1 test/resources/media_file_test.rb
meducation_sdk-0.3.0 test/resources/media_file_test.rb