This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
describe('createIntervalCallback', function() { | |
var sut = $.clockTest; | |
it('calls setInterval with callback() at a delay of 7000 ms', function() { | |
spyOn(sut, 'callback'); | |
jasmine.Clock.useMock(); | |
sut.createIntervalCallback(); | |
jasmine.Clock.tick(7000); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def build_virtual_boards_hash(board, player) | |
virtual_boards_hash = {} | |
new_board_hash = {} | |
virtual_board = board.dup | |
empty_spaces_on_board = virtual_board.grid.select{ |k, v| v == " " }.keys | |
index_mark = 'VB'+empty_spaces_on_board.length.to_s | |
while empty_spaces_on_board.length >= 1 | |
empty_spaces_on_board.each do |empty_space_symbol| | |
NewerOlder