logo

mastofe

My custom branche(s) on git.pleroma.social/pleroma/mastofe git clone https://hacktivis.me/git/mastofe.git

conversation_spec.rb (334B)


  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