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-2.0.3 test/resources/board_follows_test.rb
meducation_sdk-2.0.2 test/resources/board_follows_test.rb
meducation_sdk-2.0.1 test/resources/board_follows_test.rb
meducation_sdk-2.0.0 test/resources/board_follows_test.rb
meducation_sdk-1.6.16 test/resources/board_follows_test.rb
meducation_sdk-1.6.15 test/resources/board_follows_test.rb
meducation_sdk-1.6.14 test/resources/board_follows_test.rb
meducation_sdk-1.6.13 test/resources/board_follows_test.rb
meducation_sdk-1.6.12 test/resources/board_follows_test.rb
meducation_sdk-1.6.11 test/resources/board_follows_test.rb
meducation_sdk-1.6.10 test/resources/board_follows_test.rb
meducation_sdk-1.6.6 test/resources/board_follows_test.rb
meducation_sdk-1.6.5 test/resources/board_follows_test.rb
meducation_sdk-1.6.4 test/resources/board_follows_test.rb
meducation_sdk-1.6.3 test/resources/board_follows_test.rb
meducation_sdk-1.6.2 test/resources/board_follows_test.rb
meducation_sdk-1.6.1 test/resources/board_follows_test.rb
meducation_sdk-1.6.0 test/resources/board_follows_test.rb
meducation_sdk-1.5.7 test/resources/board_follows_test.rb
meducation_sdk-1.5.6 test/resources/board_follows_test.rb