Sha256: 4364b12dc96148f19217e2d9c772a9f854f18d4db7bf3dcefffb920247fcec15

Contents?: true

Size: 396 Bytes

Versions: 5

Compression:

Stored size: 396 Bytes

Contents

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

module MeducationSDK
  class CommentTest < ResourceTest
    test_resource(Comment, '/comments')

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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
meducation_sdk-0.9.0 test/resources/comment_test.rb
meducation_sdk-0.8.0 test/resources/comment_test.rb
meducation_sdk-0.7.0 test/resources/comment_test.rb
meducation_sdk-0.6.1 test/resources/comment_test.rb
meducation_sdk-0.6.0 test/resources/comment_test.rb