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