Sha256: e57f2541f92f2c0deb55bf16a77f166900c41a617230d49e510f1db2ebe331d8

Contents?: true

Size: 500 Bytes

Versions: 34

Compression:

Stored size: 500 Bytes

Contents

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

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

34 entries across 34 versions & 1 rubygems

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