Skip to content

Commit

Permalink
Add additional cases for room specs
Browse files Browse the repository at this point in the history
  • Loading branch information
MrRTi committed Aug 11, 2023
1 parent 51f9cae commit 43dbad1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions spec/shared/room_behaviors.rb
Original file line number Diff line number Diff line change
Expand Up @@ -700,13 +700,15 @@

context 'with text message' do
it { expect { upload }.not_to raise_error }
it { expect(upload).to be_a(RocketChat::Message) }
end

context 'without text message' do
let(:rest_params) { {} }
let(:response) { file_upload_without_message_response(room_id: room_id) }

it { expect { upload }.not_to raise_error }
it { expect(upload).to be_a(RocketChat::Message) }
end
end

Expand All @@ -719,6 +721,7 @@
end

it { expect { upload }.not_to raise_error }
it { expect(upload).to be_a(RocketChat::Message) }
end

context 'when not accepted error is raised' do
Expand Down

0 comments on commit 43dbad1

Please sign in to comment.