Skip to content

Commit fdadbeb

Browse files
committed
Fix team based test
1 parent 9c9ddfe commit fdadbeb

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

spec/client_spec.rb

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,9 @@ def loop_times(times)
170170

171171
@client.update_user_partial({
172172
id: user_id,
173-
teams: ['blue']
173+
set: {
174+
teams: ['blue']
175+
}
174176
})
175177

176178
response = @client.update_user_partial({
@@ -180,7 +182,7 @@ def loop_times(times)
180182
}
181183
})
182184

183-
expect(response['users'][user_id]['team']).to eq('blue')
185+
expect(response['users'][user_id]['teams']).to eq(['blue'])
184186
expect(response['users'][user_id]['teams_role']['blue']).to eq('admin')
185187
end
186188

0 commit comments

Comments
 (0)