Sha256: 1441d5488d54538b3624f713ee631726f469a7e486f45fe15ab38ffdb6461873

Contents?: true

Size: 508 Bytes

Versions: 1

Compression:

Stored size: 508 Bytes

Contents

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

module MeducationSDK
  class BoardFollowerTest < ResourceTest
    test_resource(BoardFollower, '/board_followers')

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

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

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
meducation_sdk-1.5.4 test/resources/board_followers_test.rb