Sha256: 37c98c25b3311f16b73959b94e37cd48e0e0b08170546d621cfe6d86aa5d9011

Contents?: true

Size: 384 Bytes

Versions: 13

Compression:

Stored size: 384 Bytes

Contents

require_relative '../test_helper'
require_relative '../resource_test'

module MeducationSDK
  class ContributionTest < ResourceTest
    test_resource(Contribution, '/contributions')

    def test_item_calls_sdk
      contribution = Contribution.new(item_id: 2, item_type: "MediaFile")
      MeducationSDK::MediaFile.expects(:find).with(2)
      contribution.item
    end

  end
end


Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
meducation_sdk-2.2.2 test/resources/contribution_test.rb
meducation_sdk-2.2.1 test/resources/contribution_test.rb
meducation_sdk-2.2.0 test/resources/contribution_test.rb
meducation_sdk-2.1.4 test/resources/contribution_test.rb
meducation_sdk-2.1.3 test/resources/contribution_test.rb
meducation_sdk-2.1.2 test/resources/contribution_test.rb
meducation_sdk-2.1.1 test/resources/contribution_test.rb
meducation_sdk-2.1.0 test/resources/contribution_test.rb
meducation_sdk-2.0.5 test/resources/contribution_test.rb
meducation_sdk-2.0.4 test/resources/contribution_test.rb
meducation_sdk-2.0.3 test/resources/contribution_test.rb
meducation_sdk-2.0.2 test/resources/contribution_test.rb
meducation_sdk-2.0.1 test/resources/contribution_test.rb