Skip to content

Commit

Permalink
rspec
Browse files Browse the repository at this point in the history
  • Loading branch information
farhatahmad committed Nov 3, 2023
1 parent cc8df3e commit 39f829d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions spec/controllers/rooms_controller_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -298,8 +298,8 @@
it 'returns recordings belonging to the room' do
room1 = create(:room, user:, friendly_id: 'friendly_id_1')
room2 = create(:room, user:, friendly_id: 'friendly_id_2')
recordings = create_list(:recording, 5, room: room1)
create_list(:recording, 5, room: room2)
recordings = create_list(:recording, 3, room: room1)
create_list(:recording, 3, room: room2)
get :recordings, params: { friendly_id: room1.friendly_id }
recording_ids = response.parsed_body['data'].pluck('id')
expect(response).to have_http_status(:ok)
Expand All @@ -320,7 +320,7 @@
create(:shared_access, user_id: shared_user.id, room_id: room.id)
sign_in_user(shared_user)

recordings = create_list(:recording, 5, room:)
recordings = create_list(:recording, 3, room:)

get :recordings, params: { friendly_id: room.friendly_id }

Expand Down

0 comments on commit 39f829d

Please sign in to comment.