conversation_spec.rb 334 B

12345678910111213
  1. require 'rails_helper'
  2. RSpec.describe Conversation, type: :model do
  3. describe '#local?' do
  4. it 'returns true when URI is nil' do
  5. expect(Fabricate(:conversation).local?).to be true
  6. end
  7. it 'returns false when URI is not nil' do
  8. expect(Fabricate(:conversation, uri: 'abc').local?).to be false
  9. end
  10. end
  11. end