Skip to content

Commit

Permalink
update depreciated faker generator (#376)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mariam05 authored Dec 18, 2024
1 parent 59035d4 commit 4f95e98
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion spec/concerns/bbb_helper_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@
returncode: true, deleted: true
))

expect(delete_recording(Faker::IDNumber.valid))
expect(delete_recording(Faker::IdNumber.valid))
.to(contain_exactly([:returncode, true], [:deleted, true]))
end
end
Expand Down
8 changes: 4 additions & 4 deletions spec/controllers/rooms_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@
allow_any_instance_of(BbbHelper).to(receive(:update_recording).and_return(updated: true))
@request.session[:user_id] = @user.uid

post :recording_update, params: { id: @room.id, record_id: Faker::IDNumber.valid, setting: 'rename_recording', record_name: 'New name' }
post :recording_update, params: { id: @room.id, record_id: Faker::IdNumber.valid, setting: 'rename_recording', record_name: 'New name' }

expect(response).to(have_http_status(204))
end
Expand All @@ -176,7 +176,7 @@
allow_any_instance_of(BbbHelper).to(receive(:delete_recording).and_return(true))
@request.session[:user_id] = @user.uid

post :recording_delete, params: { id: @room.id, record_id: Faker::IDNumber.valid }
post :recording_delete, params: { id: @room.id, record_id: Faker::IdNumber.valid }

expect(response).to(have_http_status(302))
end
Expand All @@ -186,15 +186,15 @@
it 'publishes the recording' do
allow_any_instance_of(BbbHelper).to(receive(:publish_recording).and_return(true))

post :recording_publish, params: { id: @room.id, record_id: Faker::IDNumber.valid }
post :recording_publish, params: { id: @room.id, record_id: Faker::IdNumber.valid }

expect(response).to(have_http_status(302))
end

it 'unpublishes the recording' do
allow_any_instance_of(BbbHelper).to(receive(:unpublish_recording).and_return(true))

post :recording_unpublish, params: { id: @room.id, record_id: Faker::IDNumber.valid }
post :recording_unpublish, params: { id: @room.id, record_id: Faker::IdNumber.valid }

expect(response).to(have_http_status(302))
end
Expand Down

0 comments on commit 4f95e98

Please sign in to comment.