1. Steven! Ragnarök
  2. puzzle_nodes

Source

puzzle_nodes / 13 / test / piece_test.rb

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

class PieceTest < MiniTest::Unit::TestCase
  def setup
    @piece = Piece.new :wP, :b2
  end

  def test_piece_knows_type
    assert_equal :P, @piece.type
  end

  def test_piece_knows_color
    assert_equal :w, @piece.color
  end

  def test_piece_validates_moves
    fail
  end
end