test: Remove outdated TODO for auto-assignment feature
Some checks reported errors
continuous-integration/drone/push Build was killed
Some checks reported errors
continuous-integration/drone/push Build was killed
Auto-assignment of default membership fee type is already implemented via SetDefaultMembershipFeeType change. Test assertion is now active.
This commit is contained in:
parent
c6dd0cd09d
commit
235154a102
1 changed files with 4 additions and 8 deletions
|
|
@ -158,10 +158,8 @@ defmodule Mv.MembershipFees.MembershipFeeTypeIntegrationTest do
|
||||||
|> Ash.update!()
|
|> Ash.update!()
|
||||||
|
|
||||||
# Create a member without explicitly setting membership_fee_type_id
|
# Create a member without explicitly setting membership_fee_type_id
|
||||||
# Note: This test assumes that the Member resource automatically assigns
|
# The Member resource automatically assigns the default_membership_fee_type_id
|
||||||
# the default_membership_fee_type_id during creation. If this is not yet
|
# during creation via SetDefaultMembershipFeeType change.
|
||||||
# implemented, this test will fail initially (which is expected in TDD).
|
|
||||||
# For now, we skip this test as the auto-assignment feature is not yet implemented.
|
|
||||||
{:ok, member} =
|
{:ok, member} =
|
||||||
Ash.create(Member, %{
|
Ash.create(Member, %{
|
||||||
first_name: "Test",
|
first_name: "Test",
|
||||||
|
|
@ -169,10 +167,8 @@ defmodule Mv.MembershipFees.MembershipFeeTypeIntegrationTest do
|
||||||
email: "test.member.#{System.unique_integer([:positive])}@example.com"
|
email: "test.member.#{System.unique_integer([:positive])}@example.com"
|
||||||
})
|
})
|
||||||
|
|
||||||
# TODO: When auto-assignment is implemented, uncomment this assertion
|
# Verify that the default membership fee type was automatically assigned
|
||||||
# assert member.membership_fee_type_id == fee_type.id
|
assert member.membership_fee_type_id == fee_type.id
|
||||||
# For now, we just verify the member was created successfully
|
|
||||||
assert %Member{} = member
|
|
||||||
end
|
end
|
||||||
|
|
||||||
test "include_joining_cycle is used during cycle generation" do
|
test "include_joining_cycle is used during cycle generation" do
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue