The code powering m.abunchtell.com https://m.abunchtell.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

14 lines
334 B

  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