1. Steven! Ragnarök
  2. puzzle_nodes

Source

puzzle_nodes / 13 / test / pawn_test.rb

require 'minitest/unit'
require 'minitest/autorun'
require './lib/board'
require './lib/piece/pawn'

class PawnTest < MiniTest::Unit::TestCase

  def setup
    @board = Board.new <<BOARD
bR bN bB bQ bK bB bN bR
bP bP bP bP bP bP bP bP
-- -- -- -- -- -- -- --
-- -- -- -- -- -- -- --
-- -- -- -- -- -- -- --
-- -- -- -- -- -- -- --
wP wP wP wP wP wP wP wP
wR wN wB wQ wK wB wN wR
BOARD

    @white_pawn = Pawn.new 'wP', :a2
  end

  def test_pawns_move_straight_ahead
    assert_includes @white_pawn.destinations, :a3
  end
end