This repository has been archived on 2019-05-14. You can view files and clone it, but cannot push or open issues or pull requests.
mastodon/spec/models/favourite_spec.rb

10 lines
297 B
Ruby
Raw Normal View History

require 'rails_helper'
RSpec.describe Favourite, type: :model do
2016-02-26 14:28:08 +00:00
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