Sha256: 00e633d41c3b294a3bcaa5cee29c1a8f42c2b8a7c851232bba7c0c830875f6e4

Contents?: true

Size: 544 Bytes

Versions: 12

Compression:

Stored size: 544 Bytes

Contents

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

module MeducationSDK
  class VoteTest < ResourceTest
    test_resource(Vote, '/votes')

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

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


Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
meducation_sdk-1.5.1 test/resources/vote_test.rb
meducation_sdk-1.5.0 test/resources/vote_test.rb
meducation_sdk-1.4.4 test/resources/vote_test.rb
meducation_sdk-1.4.3 test/resources/vote_test.rb
meducation_sdk-1.4.2 test/resources/vote_test.rb
meducation_sdk-1.4.1 test/resources/vote_test.rb
meducation_sdk-1.4.0 test/resources/vote_test.rb
meducation_sdk-1.3.0 test/resources/vote_test.rb
meducation_sdk-1.2.6 test/resources/vote_test.rb
meducation_sdk-1.2.5 test/resources/vote_test.rb
meducation_sdk-1.2.4 test/resources/vote_test.rb
meducation_sdk-1.2.3 test/resources/vote_test.rb