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-2.2.2 test/resources/vote_test.rb
meducation_sdk-2.2.1 test/resources/vote_test.rb
meducation_sdk-2.2.0 test/resources/vote_test.rb
meducation_sdk-2.1.4 test/resources/vote_test.rb
meducation_sdk-2.1.3 test/resources/vote_test.rb
meducation_sdk-2.1.2 test/resources/vote_test.rb
meducation_sdk-2.1.1 test/resources/vote_test.rb
meducation_sdk-2.1.0 test/resources/vote_test.rb
meducation_sdk-2.0.5 test/resources/vote_test.rb
meducation_sdk-2.0.4 test/resources/vote_test.rb
meducation_sdk-2.0.3 test/resources/vote_test.rb
meducation_sdk-2.0.2 test/resources/vote_test.rb
meducation_sdk-2.0.1 test/resources/vote_test.rb
meducation_sdk-2.0.0 test/resources/vote_test.rb
meducation_sdk-1.6.16 test/resources/vote_test.rb
meducation_sdk-1.6.15 test/resources/vote_test.rb
meducation_sdk-1.6.14 test/resources/vote_test.rb
meducation_sdk-1.6.13 test/resources/vote_test.rb
meducation_sdk-1.6.12 test/resources/vote_test.rb
meducation_sdk-1.6.11 test/resources/vote_test.rb