Files
fizzy/test/models/entropy_test.rb
T
Mike Dalessio d41d50d52b Account.sole → Current.account
and some other de-tenant changes, including removing the controller
tenanting concerns
2025-11-17 09:11:40 -05:00

18 lines
530 B
Ruby

require "test_helper"
class Entropy::Test < ActiveSupport::TestCase
test "touch cards when entropy changes for board" do
assert_changes -> { boards(:writebook).cards.first.updated_at } do
boards(:writebook).entropy.update!(auto_postpone_period: 15.days)
end
end
test "touch cards when entropy changes for account container" do
account = Current.account
assert_changes -> { account.cards.first.updated_at } do
boards(:writebook).entropy.update!(auto_postpone_period: 15.days)
end
end
end