about summary refs log tree commit diff
path: root/spec/models/favourite_spec.rb
blob: 5b7126506f2074d2dac7ca40c9d144de24e6dd39 (plain) (blame)
1
2
3
4
5
6
7
8
9
require 'rails_helper'

RSpec.describe Favourite, type: :model do
  let(:alice)  { Fabricate(:account, username: 'alice') }
  let(:bob)    { Fabricate(:account, username: 'bob') }
  let(:status) { Fabricate(:status, account: bob) }

  subject { Favourite.new(account: alice, status: status) }
end