Sha256: a599ae359d716c1c1b95924f1579588cf53952cebdcdb1ff024d4a3290c3c526

Contents?: true

Size: 413 Bytes

Versions: 10

Compression:

Stored size: 413 Bytes

Contents

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

module MeducationSDK
  class ItemCommentTest < ResourceTest
    test_resource(ItemComment, '/item_comments')

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

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
meducation_sdk-0.5.0 test/resources/item_comment_test.rb
meducation_sdk-0.4.1 test/resources/item_comment_test.rb
meducation_sdk-0.4.0 test/resources/item_comment_test.rb
meducation_sdk-0.3.4 test/resources/item_comment_test.rb
meducation_sdk-0.3.3 test/resources/item_comment_test.rb
meducation_sdk-0.3.2 test/resources/item_comment_test.rb
meducation_sdk-0.3.1 test/resources/item_comment_test.rb
meducation_sdk-0.3.0 test/resources/item_comment_test.rb
meducation_sdk-0.2.0 test/resources/item_comment_test.rb
meducation_sdk-0.1.0 test/resources/item_comment_test.rb