Sha256: 04d98f7c139a4f79007421ae4e8141a104568d8290845f6118ab7a13818bc394

Contents?: true

Size: 388 Bytes

Versions: 5

Compression:

Stored size: 388 Bytes

Contents

require_relative '../test_helper'
require_relative '../resource_test'

module MeducationSDK
  class CollectionTopicTest < ResourceTest
    test_resource(CollectionTopic, '/collection_topics')

    def test_comments_calls_sdk
      topic = CollectionTopic.new(comment_ids: [7, 8, 9])
      MeducationSDK::Comment.expects(:where).with(id: [7, 8, 9])
      topic.comments
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
meducation_sdk-1.5.6 test/resources/collection_topic_test.rb
meducation_sdk-1.5.5 test/resources/collection_topic_test.rb
meducation_sdk-1.5.4 test/resources/collection_topic_test.rb
meducation_sdk-1.5.3 test/resources/collection_topic_test.rb
meducation_sdk-1.5.2 test/resources/collection_topic_test.rb