]> cat aescling's git repositories - mastodon.git/blob - spec/controllers/accounts_controller_spec.rb
Refactoring Grape API methods into normal controllers & other things
[mastodon.git] / spec / controllers / accounts_controller_spec.rb
1 require 'rails_helper'
2
3 RSpec.describe AccountsController, type: :controller do
4 let(:alice) { Fabricate(:account, username: 'alice') }
5
6 describe 'GET #show' do
7 it 'returns 200' do
8 get :show, username: alice.username
9 expect(response).to have_http_status(:success)
10 end
11
12 it 'returns 200 with Atom' do
13 get :show, username: alice.username, format: 'atom'
14 expect(response).to have_http_status(:success)
15 end
16 end
17 end
This page took 0.071398 seconds and 4 git commands to generate.