assert_nothing_raised do
@board.make_move(0,0,Board::HUMAN)
end
and the docs say:
Passes if block does not throw anything.
Example:
assert_nothing_thrown do
[1, 2].uniq
end
my make_move method:
def make_move(x, y, player)
return false
end
I get the error:
test_can_make_valid_move_in_the_first_row(BoardTest):
ArgumentError: wrong number of arguments (1 for 2)
This following code works for me. Does it work for you?
I think you are using assert_nothing_raised correctly. Try replacing
with something more simple, like
and see if that works. Also try commenting out all the other code in your test.