tabletop-companion/test/integration/dice_rolling_test.rb

12 lines
273 B
Ruby

# frozen_string_literal: true
require "test_helper"
class DiceRollingTest < ActionDispatch::IntegrationTest
test "rolling a stat should create a dice roll" do
assert_changes("DiceRoll.count", +1) do
stats(:strength).roll(tables(:dnd_table))
end
end
end