2016-02-23 19:17:37 +01:00
|
|
|
require 'rails_helper'
|
|
|
|
|
|
|
|
RSpec.describe Favourite, type: :model do
|
2016-02-26 15:28:08 +01: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) }
|
2016-02-23 19:17:37 +01:00
|
|
|
end
|