Sha256: 5eeda317460873f946032dbd14bd91dccc0077e2b9e992f1ed05c74a88da4d21

Contents?: true

Size: 432 Bytes

Versions: 14

Compression:

Stored size: 432 Bytes

Contents

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

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

14 entries across 14 versions & 1 rubygems

Version Path
meducation_sdk-1.5.1 test/resources/collection_topic_test.rb
meducation_sdk-1.5.0 test/resources/collection_topic_test.rb
meducation_sdk-1.4.4 test/resources/collection_topic_test.rb
meducation_sdk-1.4.3 test/resources/collection_topic_test.rb
meducation_sdk-1.4.2 test/resources/collection_topic_test.rb
meducation_sdk-1.4.1 test/resources/collection_topic_test.rb
meducation_sdk-1.4.0 test/resources/collection_topic_test.rb
meducation_sdk-1.3.0 test/resources/collection_topic_test.rb
meducation_sdk-1.2.6 test/resources/collection_topic_test.rb
meducation_sdk-1.2.5 test/resources/collection_topic_test.rb
meducation_sdk-1.2.4 test/resources/collection_topic_test.rb
meducation_sdk-1.2.3 test/resources/collection_topic_test.rb
meducation_sdk-1.2.2 test/resources/collection_topic_test.rb
meducation_sdk-1.2.1 test/resources/collection_topic_test.rb