Sha256: 64ed5b61272b2b973503b59db2a97a1951d9a68d1960f4b4209e8eb5e8ee3e46

Contents?: true

Size: 489 Bytes

Versions: 10

Compression:

Stored size: 489 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

10 entries across 10 versions & 1 rubygems

Version Path
meducation_sdk-2.2.2 test/resources/board_follows_test.rb
meducation_sdk-2.2.1 test/resources/board_follows_test.rb
meducation_sdk-2.2.0 test/resources/board_follows_test.rb
meducation_sdk-2.1.4 test/resources/board_follows_test.rb
meducation_sdk-2.1.3 test/resources/board_follows_test.rb
meducation_sdk-2.1.2 test/resources/board_follows_test.rb
meducation_sdk-2.1.1 test/resources/board_follows_test.rb
meducation_sdk-2.1.0 test/resources/board_follows_test.rb
meducation_sdk-2.0.5 test/resources/board_follows_test.rb
meducation_sdk-2.0.4 test/resources/board_follows_test.rb