tabletop-companion/test/integration/dice_rolling_test.rb

12 lines
273 B
Ruby
Raw Permalink Normal View History

2024-06-13 12:03:34 +00:00
# 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