0
0
Fork 0

Fix semantics of follow requests another slaps

This commit is contained in:
Eugen Rochko 2017-02-11 17:09:36 +01:00
parent 0b95eb3612
commit 50660d54e8
9 changed files with 24 additions and 34 deletions

View file

@ -26,13 +26,8 @@ RSpec.describe Favourite, type: :model do
end
describe '#object_type' do
it 'is a note when the target is a note' do
expect(subject.object_type).to be :note
end
it 'is a comment when the target is a comment' do
status.in_reply_to_id = 2
expect(subject.object_type).to be :comment
it 'is an activity' do
expect(subject.object_type).to be :activity
end
end

View file

@ -25,8 +25,8 @@ RSpec.describe Follow, type: :model do
end
describe '#object_type' do
it 'is a person' do
expect(subject.object_type).to be :person
it 'is an activity' do
expect(subject.object_type).to be :activity
end
end