This repository has been archived on 2024-06-09. You can view files and clone it, but cannot push or open issues/pull-requests.
2017-05-12 19:09:21 +02:00
|
|
|
require 'rails_helper'
|
|
|
|
|
|
|
|
RSpec.describe Conversation, type: :model do
|
2019-07-28 17:47:37 +02:00
|
|
|
describe '#local?' do
|
|
|
|
it 'returns true when URI is nil' do
|
|
|
|
expect(Fabricate(:conversation).local?).to be true
|
|
|
|
end
|
2017-05-12 19:09:21 +02:00
|
|
|
|
2019-07-28 17:47:37 +02:00
|
|
|
it 'returns false when URI is not nil' do
|
|
|
|
expect(Fabricate(:conversation, uri: 'abc').local?).to be false
|
|
|
|
end
|
|
|
|
end
|
2017-05-12 19:09:21 +02:00
|
|
|
end
|