diff options
Diffstat (limited to 'spec/controllers/statuses_controller_spec.rb')
-rw-r--r-- | spec/controllers/statuses_controller_spec.rb | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/spec/controllers/statuses_controller_spec.rb b/spec/controllers/statuses_controller_spec.rb new file mode 100644 index 000000000..06ee23f3d --- /dev/null +++ b/spec/controllers/statuses_controller_spec.rb @@ -0,0 +1,16 @@ +# frozen_string_literal: true + +require 'rails_helper' + +describe StatusesController do + render_views + + describe '#show' do + it 'returns a success' do + status = Fabricate(:status) + get :show, params: { account_username: status.account.username, id: status.id } + + expect(response).to have_http_status(:success) + end + end +end |