Sha256: 313822f649b977ac147c089f10d941128c48e55937e8b68fd55c9c1f6a9f79db

Contents?: true

Size: 570 Bytes

Versions: 12

Compression:

Stored size: 570 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

    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

12 entries across 12 versions & 1 rubygems

Version Path
meducation_sdk-1.2.5 test/resources/comment_test.rb
meducation_sdk-1.2.4 test/resources/comment_test.rb
meducation_sdk-1.2.3 test/resources/comment_test.rb
meducation_sdk-1.2.2 test/resources/comment_test.rb
meducation_sdk-1.2.1 test/resources/comment_test.rb
meducation_sdk-1.2.0 test/resources/comment_test.rb
meducation_sdk-1.1.2 test/resources/comment_test.rb
meducation_sdk-1.1.1 test/resources/comment_test.rb
meducation_sdk-1.1.0 test/resources/comment_test.rb
meducation_sdk-1.0.0 test/resources/comment_test.rb
meducation_sdk-0.10.1 test/resources/comment_test.rb
meducation_sdk-0.10.0 test/resources/comment_test.rb