1
0

conversation_spec.rb 351 B

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