You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
789 B
29 lines
789 B
require 'rails_helper' |
|
|
|
RSpec.describe Notification, type: :model do |
|
describe '#from_account' do |
|
pending |
|
end |
|
|
|
describe '#type' do |
|
it 'returns :reblog for a Status' do |
|
notification = Notification.new(activity: Status.new) |
|
expect(notification.type).to eq :reblog |
|
end |
|
|
|
it 'returns :mention for a Mention' do |
|
notification = Notification.new(activity: Mention.new) |
|
expect(notification.type).to eq :mention |
|
end |
|
|
|
it 'returns :favourite for a Favourite' do |
|
notification = Notification.new(activity: Favourite.new) |
|
expect(notification.type).to eq :favourite |
|
end |
|
|
|
it 'returns :follow for a Follow' do |
|
notification = Notification.new(activity: Follow.new) |
|
expect(notification.type).to eq :follow |
|
end |
|
end |
|
end
|
|
|