Sha256: 03ac4c0be818fcbe4fbf373af938d841ff66782bce9003f2c949774dd26e196d

Contents?: true

Size: 490 Bytes

Versions: 21

Compression:

Stored size: 490 Bytes

Contents

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

module MeducationSDK
  class BoardFollowTest < ResourceTest
    test_resource(BoardFollow, '/board_follows')

    def test_user_calls_sdk
      follow = BoardFollow.new(user_id: 2)
      MeducationSDK::User.expects(:find).with(2)
      follow.user
    end

    def test_board_calls_sdk
      follow = BoardFollow.new(board_id: 2)
      MeducationSDK::Board.expects(:find).with(2)
      follow.board
    end

  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
meducation_sdk-1.5.5 test/resources/board_follows_test.rb