Sha256: d41e74c1cb531a98fdb0d236ba77534d5acc28b9298feec55cc2b2a69eceb750
Contents?: true
Size: 541 Bytes
Versions: 9
Compression:
Stored size: 541 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_user_calls_sdk comment = Comment.new(user_id: 2) MeducationSDK::User.expects(:find).with(2) comment.user end end end
Version data entries
9 entries across 9 versions & 1 rubygems