diff --git a/spec/shared/room_behaviors.rb b/spec/shared/room_behaviors.rb index 50c5cc7..6bf6ef4 100644 --- a/spec/shared/room_behaviors.rb +++ b/spec/shared/room_behaviors.rb @@ -700,6 +700,7 @@ 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 @@ -707,6 +708,7 @@ 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 @@ -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