d41d50d52b
and some other de-tenant changes, including removing the controller tenanting concerns
18 lines
530 B
Ruby
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
|