Stop trying to shoehorn all Salmon updates into the poor database-connected
StreamEntry model. Simply render Salmon slaps as they are needed
This commit is contained in:
parent
94d2182717
commit
0518492158
22 changed files with 304 additions and 266 deletions
|
@ -6,40 +6,4 @@ RSpec.describe Favourite, type: :model do
|
|||
let(:status) { Fabricate(:status, account: bob) }
|
||||
|
||||
subject { Favourite.new(account: alice, status: status) }
|
||||
|
||||
describe '#verb' do
|
||||
it 'is always favorite' do
|
||||
expect(subject.verb).to be :favorite
|
||||
end
|
||||
end
|
||||
|
||||
describe '#title' do
|
||||
it 'describes the favourite' do
|
||||
expect(subject.title).to eql 'alice favourited a status by bob'
|
||||
end
|
||||
end
|
||||
|
||||
describe '#content' do
|
||||
it 'equals the title' do
|
||||
expect(subject.content).to eq subject.title
|
||||
end
|
||||
end
|
||||
|
||||
describe '#object_type' do
|
||||
it 'is an activity' do
|
||||
expect(subject.object_type).to be :activity
|
||||
end
|
||||
end
|
||||
|
||||
describe '#target' do
|
||||
it 'is the status that was favourited' do
|
||||
expect(subject.target).to eq status
|
||||
end
|
||||
end
|
||||
|
||||
describe '#thread' do
|
||||
it 'equals the target' do
|
||||
expect(subject.thread).to eq subject.target
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue