Skip to content

Commit 9ade31f

Browse files
committed
Update platform membership creation to use PersonPlatformMembership model
1 parent 4377eb9 commit 9ade31f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

spec/support/automatic_test_configuration.rb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -240,9 +240,10 @@ def find_or_create_test_user(email, password, role_type = :user)
240240
platform = BetterTogether::Platform.first
241241
role = BetterTogether::Role.find_by(identifier: 'platform_manager')
242242
if platform && role
243-
BetterTogether::PlatformMembership.create!(
243+
# Use PersonPlatformMembership model which links people to platforms
244+
BetterTogether::PersonPlatformMembership.create!(
244245
member: user.person,
245-
platform: platform,
246+
joinable: platform,
246247
role: role
247248
)
248249
end

0 commit comments

Comments
 (0)