Browse Source

Small rubocop offences removed

closed-social-v3
Eugen Rochko 7 years ago
parent
commit
9863196f7b
2 changed files with 3 additions and 2 deletions
  1. +1
    -0
      app/services/process_mentions_service.rb
  2. +2
    -2
      spec/controllers/accounts_controller_spec.rb

+ 1
- 0
app/services/process_mentions_service.rb View File

@ -14,6 +14,7 @@ class ProcessMentionsService < BaseService
begin
mentioned_account = follow_remote_account_service.("#{match.first}")
rescue Goldfinger::Error, HTTP::Error
mentioned_account = nil
end
end

+ 2
- 2
spec/controllers/accounts_controller_spec.rb View File

@ -8,10 +8,10 @@ RSpec.describe AccountsController, type: :controller do
describe 'GET #show' do
before do
status1 = Status.create!(account: alice, text: 'Hello world')
status2 = Status.create!(account: alice, text: 'Boop', thread: status1)
Status.create!(account: alice, text: 'Boop', thread: status1)
status3 = Status.create!(account: alice, text: 'Picture!')
status3.media_attachments.create!(account: alice, file: fixture_file_upload('files/attachment.jpg', 'image/jpeg'))
status4 = Status.create!(account: alice, text: 'Mentioning @alice')
Status.create!(account: alice, text: 'Mentioning @alice')
end
context 'atom' do

Loading…
Cancel
Save