2023-02-22 00:55:31 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2017-05-12 17:09:21 +00:00
|
|
|
require 'rails_helper'
|
|
|
|
|
2023-05-04 03:49:53 +00:00
|
|
|
RSpec.describe Conversation do
|
2019-07-28 15:47:37 +00:00
|
|
|
describe '#local?' do
|
|
|
|
it 'returns true when URI is nil' do
|
|
|
|
expect(Fabricate(:conversation).local?).to be true
|
|
|
|
end
|
2017-05-12 17:09:21 +00:00
|
|
|
|
2019-07-28 15:47:37 +00:00
|
|
|
it 'returns false when URI is not nil' do
|
|
|
|
expect(Fabricate(:conversation, uri: 'abc').local?).to be false
|
|
|
|
end
|
|
|
|
end
|
2017-05-12 17:09:21 +00:00
|
|
|
end
|