You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
536 B

require "minitest/autorun"
require "rank_king"
module RankKing
class TestRankKing < Minitest::Test
def test_rank_king
pool = Pool.create(name: "Ping Pong")
alice = Item.create(title: "Alice", body: "")
bob = Item.create(title: "Bob", body: "")
eve = Item.create(title: "Eve", body: "")
mallory = Item.create(title: "Mallory", body: "")
axis = Axis.create(name: "Rank", better_legend: "Better", worse_legend: "Worse")
RankKing.rate(axis:, winner: alice, loser: bob)
end
end
end