test/resources/board_test.rb in meducation_sdk-1.5.0 vs test/resources/board_test.rb in meducation_sdk-1.5.1
- old
+ new
@@ -14,7 +14,13 @@
def test_created_by_calls_sdk
board = Board.new(created_by_id: 2)
MeducationSDK::User.expects(:find).with(2)
board.created_by
end
+
+ def test_items_calls_sdk
+ board = Board.new(id: 54)
+ MeducationSDK::BoardItem.expects(:where).with(board_id: board.id)
+ board.items
+ end
end
end