0
0
Fork 0

Fixing atom feeds for accounts, adding tests that would catch such bugs in future

This commit is contained in:
Eugen Rochko 2016-09-08 00:33:07 +02:00
parent 499beb4484
commit 87576e1ab1
9 changed files with 41 additions and 7 deletions

View file

@ -1,6 +1,8 @@
require 'rails_helper'
RSpec.describe Api::AccountsController, type: :controller do
render_views
let(:user) { Fabricate(:user, account: Fabricate(:account, username: 'alice')) }
let(:token) { double acceptable?: true, resource_owner_id: user.id }