Skip to content

Commit 01ac35a

Browse files
chore: changed user ids in moderation specs
1 parent dcf2b06 commit 01ac35a

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

spec/client_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,7 @@ def loop_times(times)
453453

454454
it 'queries channels' do
455455
response = @client.query_channels({ 'members' => { '$in' => ['legolas'] } }, sort: { 'id' => 1 })
456-
expect(response['channels'].length).to eq 2
456+
expect(response['channels'].length).to eq 1
457457
expect(response['channels'][0]['channel']['id']).to eq @channel.id
458458
expect(response['channels'][0]['members'].length).to eq 4
459459
end

spec/moderation_spec.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ def loop_times(times)
2626
@created_users = []
2727

2828
@fellowship_of_the_ring = [
29-
{ id: 'frodo-baggins', name: 'Frodo Baggins', race: 'Hobbit', age: 50 },
30-
{ id: 'sam-gamgee', name: 'Samwise Gamgee', race: 'Hobbit', age: 38 },
31-
{ id: 'gandalf', name: 'Gandalf the Grey', race: 'Istari' },
32-
{ id: 'legolas', name: 'Legolas', race: 'Elf', age: 500 }
29+
{ id: SecureRandom.uuid, name: 'Frodo Baggins', race: 'Hobbit', age: 50 },
30+
{ id: SecureRandom.uuid, name: 'Samwise Gamgee', race: 'Hobbit', age: 38 },
31+
{ id: SecureRandom.uuid, name: 'Gandalf the Grey', race: 'Istari' },
32+
{ id: SecureRandom.uuid, name: 'Legolas', race: 'Elf', age: 500 }
3333
]
3434
@client.upsert_users(@fellowship_of_the_ring)
3535

@@ -38,7 +38,7 @@ def loop_times(times)
3838

3939
@channel = @client.channel('team', channel_id: channel_id,
4040
data: { members: @fellowship_of_the_ring.map { |fellow| fellow[:id] } })
41-
@channel.create('gandalf')
41+
@channel.create(@fellowship_of_the_ring[2][:id])
4242
end
4343

4444
before(:each) do

0 commit comments

Comments
 (0)